Jump to content
  • 0

macOS Sierra: Operation Not Permitted on Terminal Commands


Rook

6 posts in this topic

Question

Posted

Hey!

So I'm running macOS in VMWare and everything I try to modify some system files or specifically files in /usr/bin it gives me the "operation not permitted error" and doesn't change anything.

Anyone have any ideas on how to bypass that or gain full permissions to do anything to the OS?

Thank you!

5 answers to this question

Recommended Posts

Posted

Ok, I found a the fix!

We simply had to disable csrutil and then reboot via Terminal.

csrutil disable
reboot 

But you can only do that when your macOS is in Recovery Mode.

Easiest way to enter recovery mode on VMWare is to add this line to your .vmx file:

macosguest.forceRecoveryModeInstall = "TRUE"

Then reboot your macOS and it will go into Recovery Mode so you can run the command above. 

Once done, shut down your mac, remove the line in .vmx and boot your macOS once more to into your user account. :)

 

If you get stuck in Recovery Mode, you need to delete the .nvram file next to your .vmx. Make sure your .vmx settings are all correct.

Posted

You install it to /usr/local/bin, not /usr/bin.

 

/usr/bin is read only because it protects the system from malware crap.

4 minutes ago, DiDA said:

Ok, I found a the fix!

We simply had to disable csrutil and then reboot via Terminal.


csrutil disable
reboot 

But you can only do that when your macOS is in Recovery Mode.

Easiest way to enter recovery mode on VMWare is to add this line to your .vmx file:


macosguest.forceRecoveryModeInstall = "TRUE"

Then reboot your macOS and it will go into Recovery Mode so you can run the command above. 

Once done, shut down your mac, remove the line in .vmx and boot your macOS once more to into your user account. :)

That's more for advanced users. 0/10

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines