Macos – operation not permitted on files under usr bin

macosopensslpermissionsrenameroot

I'm on OSX El Captain and I would like to rename the file "usr/bin/openssl" into "usr/bin/openssl_old" (cause I want to update openssl) but when I try it says "operation not permitted" (even as root).

I tried :

-chmod ugo+w
-chmod ugo+w

-csrutil disable (this one says "csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS."

-chown root /usr/bin/openssl -R
-chmod 777 /usr/bin/openssl -R

please help !

Best Answer

It's simply can be done following this steps:

  1. Boot your Mac in recovery mode (with holding Command+R);
  2. Check the status: csrutil status (System Integrity Protection (SIP));
  3. To disable protection run the following command: csrutil disable;
  4. Reboot the system again.

P.S. If you decide you want to enable SIP later, return to the recovery environment and run the following command: csrutil enable and reboot the system.

Related Question