3

MacOS 13.3.1 无法修改 /usr/bin 权限

 1 year ago
source link: https://www.v2ex.com/t/930939
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

MacOS 13.3.1 无法修改 /usr/bin 权限

  haoyli · 8 小时 38 分钟前 · 764 次点击
设备是刚出的 Mac Mini M2 丐版。系统是最新的 MacOS 13.3.1 Xcode Command Line Tools 也是最新的。

起因是刚升了系统之后,发现在命令行每次 cd ,都会额外出现一行 "env: python: No such file or directory",去 Google 一下说最新的 MacOS 13 移除了默认的 python ,而是替换成了 python3

于是想要 sudo ln -s /usr/bin/python3 /usr/bin/python 创建一个软链接,但报 "Read-only file system" 错误。

去 Google 一下说是要关闭 SIP 保护,于是重启进入 Recovery 模式执行 csrutil disable 后并确认确实关闭了。重启后依然报上面的错误。

在文件管理器中进入到 /usr 目录,查看详细属性,发现在 Sharing & Permissions 一项中,有三个用户,分别是 system[Read & Write] , wheel[Read only], everyone[Read only],无论是修改 everyone 的权限还是添加新用户,都报 "The operation can’t be completed because you don’t have the necessary permission."

翻了很久 Google 也没找到正经可用的方案,拜托大家帮忙看看🙏🏻

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK