美文网首页
Mac sudo chown -R $(whoami) /usr

Mac sudo chown -R $(whoami) /usr

作者: yuanthu | 来源:发表于2022-01-28 16:24 被阅读0次
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

相关文章

网友评论

      本文标题:Mac sudo chown -R $(whoami) /usr

      本文链接:https://www.haomeiwen.com/subject/kcltkrtx.html