This post was initially published on October 4, 2016.

I hit a small problem when setting up my Mac with macOS Sierra.

Zsh and its insecure directories

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

Use compaudit to show you where the problems are.

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

Remove the write permission from group at the following directories.

chmod g-w /usr/local/share/zsh/site-functions
chmod g-w /usr/local/share/zsh