zsh compinit:不安全的目录 [英] zsh compinit: insecure directories
本文介绍了zsh compinit:不安全的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是什么意思,我该如何解决?
What does it mean and how can I fix it?
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?
运行compaudit
会返回以下内容:
There are insecure directories:
/usr/local/share/zsh/site-functions
推荐答案
这已为我修复:
$ cd /usr/local/share/zsh
$ sudo chmod -R 755 ./site-functions
信用:关于zsh邮件列表的帖子
编辑:正如@biocyberman在评论中指出的那样.您可能还需要更新site-functions
的所有者:
As pointed out by @biocyberman in the comments. You may need to update the owner of site-functions
as well:
$ sudo chown -R root:root ./site-functions
在我的计算机(OSX 10.9)上,我不需要这样做,但是YMMV.
On my machine (OSX 10.9), I do not need to do this but YMMV.
:在OSX 10.11上,仅此方法有效:
On OSX 10.11, only this worked:
$ cd /usr/local/share/
$ sudo chmod -R 755 zsh
$ sudo chown -R root:staff zsh
也user:staff是OSX上正确的默认权限.
Also user:staff is the correct default permission on OSX.
这篇关于zsh compinit:不安全的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文