6

When I run fakeroot in zsh it always gives me this warning:

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

I can continue by pressing y and then fakeroot works.

I'm wondering what this error message is and how to fix it.

(If I press n fakeroot still continues (verified with whoami), which seems odd to me.)

12

This made the error go away:

cd /usr/local/share/zsh
sudo chmod -R 755 ./site-functions
sudo chown -R root:root ./site-functions

I'm still unsure what the error meant or why it happened, though.

Credit: this answer on StackOverflow which in turn got the solution from a post on the zsh mailing list

1

I simply followed what was written there.

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

I ignored these. After that, I ran compaudit,

# compaudit

It showed me 2 directories,

/usr/local/share/zsh/
/usr/local/share/zsh/site-functions/

So, insecure means something is wrong with their permissions, I changed the permissions to secure them and the error went away.

I also checked that both directories were empty, so I deleted both of them, which I would not recommend, but still I did.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.