zsh compinit: insecure directories

前端 未结 23 2174
攒了一身酷
攒了一身酷 2021-01-29 17:22

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 compini         


        
相关标签:
23条回答
  • 2021-01-29 17:33

    On macOS Sierra you need to run: sudo chown -R $(whoami):staff /usr/local

    0 讨论(0)
  • 2021-01-29 17:34

    running this command worked for me on my mac OS Catalina:

    compaudit | xargs chmod g-w,o-w

    0 讨论(0)
  • 2021-01-29 17:34

    These two lines have fixed for me.

    sudo chown -R _user_:root /usr/local/share/zsh
    
    sudo chown -R _user_:root /usr/local/share/zsh/*
    
    0 讨论(0)
  • 2021-01-29 17:34

    None of the solutions listed worked for me. Instead, I ended up uninstalling and reinstalling Homebrew, which did the trick. Uninstall instructions may be found here: http://osxdaily.com/2018/08/12/how-uninstall-homebrew-mac/

    0 讨论(0)
  • 2021-01-29 17:35

    My suggestion would be to run compaudit and then just fix permissions on the directories found by the audit. Make sure the identified directories do not have write permissions for group or other.

    0 讨论(0)
  • 2021-01-29 17:35
    1. run compaudit and it will give you a list of directories it thinks are insecure

    2. sudo chown -R username:root target_directory

    3. sudo chmod -R 755 target_directory

    0 讨论(0)
提交回复
热议问题