Environment: OSX Sierra, Darwin Kernel Version 16.3.0
Root Problem: I want to use a bunch of shell scripts in a central repository, which have a #!/usr/bin/zsh. On my Mac, the zsh is in /bin/zsh.
Attempted solution: I want to create a symbolic link
ln -s /bin/zsh /usr/bin/zsh
My user account has admin rights, but I am not root, and I would prefer not to enable the root user on this Mac. Therefore I first did a
to get a shell with root privileges and then executed the ln command. However I still get the error message ln: /usr/bin/zsh: Operation not permitted.
Why do I get this error message?
What would have I to do to create the link?
Is there a better way to achieve my original goal? Note that fixing the #! lines is not an option.