SIP is disabled, but /usr/bin is write protected anyway (macOS Catalina beta 10.5)

女生的网名这么多〃 提交于 2020-01-24 21:53:05

问题


I disabled SIP, but directory /usr/bin is write protected anyway. How to get write access for /usr/bin? Please don't suggest to switch to /usr/local/bin.


回答1:


Catalina has a new file system arrangement where most of the system files are write-protected. Apple uses two partitions, a read-only one for the main system files and a writeable one for other files, and melds them together and presents them as one to the user.

For details see the WWDC video What's New in Apple Filesystems




回答2:


I assume this answer might be relatively off-topic, as I'm not running the beta version of Catalina, but the official one.

In order to perform changes to /usr/bin, you'll have to perform the following steps.

  1. Disable System Integrity Protection (SIP).
  2. Mount / as writeable.

Disable SIP

  • Reboot your system into recovery mode (reboot and hold cmd + R while booting)
  • Use the appropriate credentials when prompted.
  • Navigate to Utilities -> Terminal in the top bar.
  • In the terminal session, execute # csrutil disable.
  • Reboot into normal boot mode (# reboot).

Mount / as writeable

With the OS in normal mode, start a new terminal session and execute the following:

  • $ sudo mount -uw /

Please note that / will be mounted as read-only on the next system boot.

In order to enable SIP, the process is exactly the same as disabling it, except for the fact that you would have to run # csrutil enable.



来源:https://stackoverflow.com/questions/57440334/sip-is-disabled-but-usr-bin-is-write-protected-anyway-macos-catalina-beta-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!