Terminal(iterm2) 실행시 zsh 계정 충돌 문제

NNIIE·2022년 4월 2일
0

Mac

목록 보기
1/3

터미널 실행시 아래와 같은 메시지가 실행 된다.

[oh-my-zsh] Insecure completion-dependent directories detected:
drwxrwxr-x  3 greg.lee  admin   96  4 2 10:00 /usr/local/share/zsh
drwxrwxr-x  4 greg.lee  admin  128  4 2 10:23 /usr/local/share/zsh/site-functions

[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.

맥북에 관리자 계정을 2개를 두고 하나는 회사용 하나는 개인 스터디용으로 사용중인데
개인계정에서 iterm2와 zsh를 설치하니까 이런 메시지가 출력이 된다.

검색해 보니 해당 디렉토리의 owner와 현재 user가 달라서 충돌이 일어나는 거였다.
아래와 같이 .zshrc에 추가해주면 된다.

> vi ~/.zshrc

ZSH_DISABLE_COMPFIX="true"

0개의 댓글