I started at a new company and was given a powerful, but security managed MacBook Pro. This couldn't continue, especially as a lot of useful commands I run in Terminal start with `sudo`.
StackOverflow isn't quite dead yet and I was lead to this Q&A with the steps needed to give me the authority I needed!

Method

  • Boot the Mac into Recovery Mode (see the method for your Mac here).
  • Go to the Utilities menu and open Terminal
  • Type `csrutil disable` to disable System Integrity Protection
  • Reboot and login as normal
  • Open Terminal
  • Run
cd /var/db/ConfigurationProfiles rm -rf * mkdir Settings touch Settings/.profilesAreInstalled
  • Reboot the Mac into Recovery Mode like in the first step
  • Type `csrutil disable` to re-enable System Integrity Protection
  • Reboot and login as normal
You should now have all the power you need to administer your Mac