​​ ​

The Apple Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


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

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.