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 not able 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
Error Message: ls: .: 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”?
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 isse 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 on 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. We have come up with custom Android & iOS App – Mobile App Development solutions, which is affordable by all.