You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ls operation not permitted on ~/Library/Safari or ~/Library/Mail

Since upgrading to macOS Safari (10.14.1), each of the commands


ls ~/Library/Safari

ls ~/Library/Mail


— even if preceded by sudo— gives error


Operation not permitted


Is there some way to get around what I presume is a security measure added in Mojave?

iMac, macOS Mojave (10.14), 4.0GHz Corei7, 32GB, 3Tb Fusion

Posted on Nov 19, 2018 7:16 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 19, 2018 7:19 AM

I know I can get around this by going into System Preferences > Security & Privacy and giving Full Disk Access to Terminal.


But is there some less "blunt" way to do it?

2 replies

ls operation not permitted on ~/Library/Safari or ~/Library/Mail

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.