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

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

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.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.