oh-my-zsh Insecure completion-dependent directories detected 해결하기

CodeLog·2020년 11월 30일
0

oh-my-zsh 설치 후 발생한 Error 해결

zsh에 oh-my-zsh 설치 한 후 zsh를 다시 실행 해 보니 아래와 같은 error 가 발생했다.
error 내용을 보니 permission 문제인듯 하다.
ZSH_DISABLE_COMPFIX="true"를 설정 해보라는 문구처럼 변수를 설정 해 봅니다

[oh-my-zsh] Insecure completion-dependent directories detected:
[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.

$vi ~/.zshrc

ZSH_DISABLE_COMPFIX 변수가 없네요.

그럼 변수를 추가해 봅니다.

ZSH_DISABLE_COMPFIX="true"

zsh다시 시작해 보면 이제는 error가 사라졌습니다.

참고 : https://b1tk3y.tistory.com/15

profile
개발로그

0개의 댓글