Ignore insecure directories and continue [y] or abort compinit [n]?

課題

セキュリティ的によろしくないディレクトリを無視するか compinit を中止するか。

zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? yzsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?
compinit: initialization aborted


対策

compaudit を行い、その後ファイル権限を変更する。

% compaudit
There are insecure directories:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh

% chmod -R 755 /usr/local/share/zsh/site-functions

% chmod -R 755 /usr/local/share/zsh