Error Message “Operation not permitted” in macOS Terminal
If you have encountered an error message “Operation not permitted” in macOS Terminal.
Are you facing access restrictions to enter into the directory?
Or unable to execute some basic command on your mac-OS terminal?
When you execute l’s or other basic commands, it gives the error message as
How to handle “Error Message Operation not permitted” in MacOS Terminal
This is possible because the mac has System Integrity Protection — also known as “rootless”
There are some system directories, which are also protected and the OSx won’t allow to write or mount anything to those locations.
The list of protected directories is found by executing the command
How to solve the error message “Operation not permitted” in macOS Terminal?
To identify the system integrity protection, we suggest you to execute the below command
To disable that, execute the below command
But, you cant disable that from normal login, the OS needs to be on Recovery mode.
So, you have to log in to your machine while OS is in recovery mode.
To launch OS in recovery mode[Mac OS]
Restart + Command + R
Enter the password and that will give the recovery screen.
You would find 4 options under macOS Utility, Don’t worry about that, Just ignore/
On the top bar, click on Utilities and click on Terminal.
On the terminal execute
Restart the machine
On the normal mode, now you would be able to execute any command on the Mac terminal.
Hence the issue a is Solved.
About Lia Infraservices:
Moto: Our moto is to build affordable IT infrastructure and make it accessible to one and all.
At Lia Infraservices, our executive team will help you with how to get your Terminal commands working again in Mac OS. Follow our remedy for the Error Message “Operation not permitted” in macOS Terminal.
Our expert team knows how to fix the errors on Mac terminals as well as in the Android Application.
With over 3 years of experience in understanding the clients’ requirements and the challenges faced by them.