Terminal Says Operation not Permitted on Mac, Fix

Several users have reported that they are unable to use Terminal to execute commands because they see an error message saying “Operation not permitted”. This article explains how you can fix this problem.

Terminal lets you have text-based access to the macOS operating system. This can make it easier for you to manage and control your computer.

Operation not Permitted error fix

1. Open System Preferences and Security & Privacy.

Security and Privacy

2. Click the Privacy tab.

Privacy tab

3. Click Full Disk Access on the left. And click the Lock icon at the bottom left of the pane (if it is locked) and enter your password so that you can make changes.

Full Disk Access

4. Select Terminal so that it is allowed to access “Full Disk Access”.

Terminal access

5. A popup will appear saying “Terminal will not have full disk access until it is quit. You can choose to quit Terminal now, or do it on your own later.” Click Quit & Reopen.

Terminal quit and reopen

6. Terminal will open. Run your command again. This time it will work.

If this does not work for you, you may want to turn off System Integrity Protection (the SIP). If you do this, disable it temporarily and turn it back on after you are done.

See also:

Dr. Serhat Kurt worked as a Senior Technology Director. He holds a doctoral degree (or doctorate) from the University of Illinois at Urbana / Champaign and a master’s degree from Purdue University. Here is his LinkedIn profile.

Thank you for choosing to leave a comment.

Please note the following:

  • All comments are moderated.
  • Your email will NOT be published nor shared.
  • All SPAM comments will be deleted.
  • Please see our comment policy page for more info.

Leave a Comment