sudo ln -s /usr/local... Not permitted

Operations not permitted :

sudo ln -s /usr/local/bin/gs /usr/bin/gs

sudo ln -s /usr/local/bin/gs /usr/bin/ghostscript


I am trying to create symbolic link for executable file in /usr/bin/ directory and it's giving Operation not permitted error.


A former similar issue has been solved in 2019, offering the second line as a solution. No longer valid with Monterey, it seems.


MacBook Pro 13″, macOS 10.13

Posted on Mar 2, 2022 11:39 AM

Reply

Similar questions

1 reply

Mar 2, 2022 1:43 PM in response to cyril235

Beginning with macOS 10.15+, the system volume is being locked down to read-only mode. Each later version of macOS is tightening this down even more.

About the read-only system volume in macOS Catalina - Apple Support


macOS does link certain System locations to the read+write Data volume. That location can be difficult to locate because macOS is changing how these items are linked under the hood. The Finder hides this from the user, and even the command line now tends to hide some of it from view unfortunately. Since these items you want to link are technically on different volumes, I'm not certain if you can link them (depends on how macOS handles this under the hood). If you check out the following location, you will discover the writable portion of those linked system areas (on my Mac with Big Sur the Finder will not display the "Data" volume at that location):

/System/Volumes/Data


Maybe this information will help you to figure out a solution.


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.

sudo ln -s /usr/local... Not permitted

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