ZSH insecure directories

1
2
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? ncompinit: initialization aborted
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
cd /usr/local/share/zsh

sudo chmod -R 755 ./site-functions

sudo chown -R root:root ./site-functions

❯ compaudit
There are insecure directories:
/home/alberto/zsh/completions/rg
/home/alberto/zsh/completions/eza
/home/alberto/zsh/pure
/home/alberto/zsh/completions
/home/alberto/zsh/completions
/home/alberto/zsh