Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. enter image description here

like image 868
Дмитрий Акимов Avatar asked Aug 10 '19 07:08

Дмитрий Акимов


People also ask

What happens if you disable SIP Mac?

This security feature is designed to make it even more difficult for malware to modify system processes, locations, and Kernel extensions. SIP prevents malware attacks from completion. Disabling it will instantly raise macOS vulnerability.

How do I disable system integrity protection on Mac?

macOS Utilities In the Terminal, type in "csrutil disable" and press Enter. There should be a message that System Integrity Protection was successfully disabled.


2 Answers

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.

like image 130
Vlad Dumitrache Avatar answered Oct 24 '22 03:10

Vlad Dumitrache


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

like image 40
CRD Avatar answered Oct 24 '22 02:10

CRD