permissions

operation not permitted

  • Performance: Even an administrator does not have permission to execute commands.

  • Cause: The System Integrity Protection (SIP) is enabled on the computer, and the rootless mechanism is added. Therefore, the file cannot be modified even when the user has the root permission. In order to modify the file, we need to disable the Protection mechanism.

  • Solution:

    1. During the restart, hold down Command +R to enter the protected mode.

    2. Open the terminal and enter:

      csrutil disable
      Copy the code
    3. After the system restarts, the rootless mechanism is disabled.

    To restore the protection mechanism, enter the protected mode again and enter csrutil enable.