MAC cannot operate files in the /system, /sbin, and /usr directories

The error message of executing idevicename is as follows

When Mac operating files in the /system, /sbin, and /usr directories, it prompts Operation not permitted, and sudo cannot be modified

the reason:

Mac OSX updated a new kernel protection mechanism rootless in 10.11, even under root, there is no full root privileges.

 

Solution:

Turn off rootless mechanism

step:

1. Restart the Mac, press and hold command + R at the same time after shutting down, enter the recovery mode

2. Open Terminal in the recovery mode interface utility

3. Execute the command csrutil disable, and then restart, as shown in the figure below

4. Restart normally and enter the system interface, open Terminal and execute csrutil status to check, as shown below

yangdeMac-mini:~ yang$ csrutil status
System Integrity Protection status: disabled.

Supplement, if you need to turn on the rootless mechanism, enter csrutil enable in step 3

 

Guess you like

Origin blog.csdn.net/xlyrh/article/details/108342060