Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I've been poking around in the terminal on my Mac recently and tried to list the contents of my Trash, using the `ls ~/.Trash` command, only to be presented with an error...
termaccess_1.png

 Error
ls: .Trash: Operation not permitted


At first I thought this was odd but then I remembered that macOS introduced new security rules some time back and applications were required to be given access to do certain operations. In this case, the Terminal.app application didn't have Full Disk Access.

This was easily resolved, from the System Preferences, I clicked on Security & Privacy...
termaccess_2.png


From there I scrolled down to Full Disk Access and clicked the lock icon at the bottom left to unlock changes being made. This required me to enter my password.
termaccess_3.png




Afterwards I could select Terminal to have full disk access, but it required me to quite the app first, which I did.
termaccess_4.png


Trying the same thing out in Terminal again let me list the contents of Trash!
termaccess_5.png


-i

Skip down to comments...
A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. If you spot something out of place, please do let me know.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
 
comments powered by Disqus
Other posts you may like...