Skip to content

Oh my zhs - error #4

@fistadev

Description

@fistadev

I had this issue with ohmyzsh.

[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.

[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh] compaudit | xargs chmod g-w,o-w

[oh-my-zsh] If the above didn't help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.


I copied and paste this code to check the problem:
compaudit | xargs chmod g-w,o-w


Then I found out this on StackOverflow
[https://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories]


And it worked for me!!
https://stackoverflow.com/questions/13762280/zsh-compinit-insecure-directories


So I ran this code again:
compaudit | xargs chmod g-w,o-w


After all of that I restart the terminal and the error wasn't there anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions