更新完 zsh 說(shuō)我目錄權(quán)限問(wèn)題的解決

問(wèn)題

Last login: Mon May 28 13:35:31 on ttys001
You have mail.
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxrwxrwx 7 hans admin 238 2 9 10:13 /usr/local/share/zsh
drwxrwxrwx 6 hans admin 204 10 1 2017 /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.

然后發(fā)現(xiàn)有類似問(wèn)題

https://github.com/robbyrussell/oh-my-zsh/issues/6835

解決方法

chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,817評(píng)論 0 10
  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa閱讀 9,040評(píng)論 0 6
  • 感賞兒子不那么迷游戲了,即使看小說(shuō)也比打游戲強(qiáng) 投射自己說(shuō)話先想一下,說(shuō)正面積極的話,不嘮叨指責(zé)埋怨兒子,說(shuō)正能量的話
    吳若閱讀 229評(píng)論 0 0
  • 2017.10.22 這是現(xiàn)租房子廚房窗子上的一顆小艸,這幾天忘了關(guān)注它,今早去看的時(shí)候已經(jīng)奄奄一息了,沒(méi)有拍,就...
    小苗_閱讀 181評(píng)論 0 0
  • 小時(shí)候,我在爺爺身邊長(zhǎng)大。爺爺真寵我,那時(shí)候條件不好,可是我每天都有糖吃,爺爺?shù)氖忠睬?,我有別的小朋友沒(méi)有的萬(wàn)花筒...
    柳新穎閱讀 899評(píng)論 12 8

友情鏈接更多精彩內(nèi)容