compaudit | xargs chmod g-w,o-w code example
Example: zsh compinit: insecure directories, run compaudit for list.
$ sudo chmod -R 755 /usr/local/share/zsh
$ sudo chown -R root:staff /usr/local/share/zsh
$ sudo chmod -R 755 /usr/local/share/zsh
$ sudo chown -R root:staff /usr/local/share/zsh