Mac sudo chown -R $(whoami) /usr

2022-01-28  本文已影响0人  yuanthu
Error: The following directories are not writable by your user:
/usr/local/share/man/man5

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/share/man/man5

And make sure that your user has write permission.
  chmod u+w /usr/local/share/man/man5

这里我们按提示使用sudo chown -R $(whoami) /usr/local/share/man/man5,
先输入:

who am i
image.png

再把上面那个$(whoami)替换为yuanhust,改变dir的owner

sudo chown -R yuanhust /usr/local/share/man/man5

然后添加user的write permission

chmod u+w /usr/local/share/man/man5
上一篇 下一篇

猜你喜欢

热点阅读