Command line security tool on Mac to stop Root from damaging things

On the newer versions of Mac OS X (10.13 onwards, I think), there's a stricter permissions setting called "System Integrity" which stops even the root user from doing certain things on the command line, e.g. messing with the operating system itself. This can be very annoying if you are used to doing things as root. It can also stop you from installing some unix-type utilities.

From the Apple menu, choose “Restart…” > “Restart“.

Simultaneously press and hold the “Command” and “R” buttons. This will start you in Recovery Mode.

Select “Utilities” > “Terminal“.

Type one of the following, then press “Enter“:

Disable System Integrity Protection: 

csrutil disable

Warning: your system is now less secure. If you get hacked, it was your decision to do this.

Popular posts from this blog

Chunk validation failed

The most useful defaults-write options

Erasing firmware password