Disable Gatekeeper from the Command Line in OS X

gatekeeperGateKeeper is a security feature to prevent your MAC getting affected by any software. By default GateKeeper prevents any third party apps from being used in OS X. This really bugs advance user like us.

Disable Gatekeeper from the Command Line in OS X

Launch Terminal if you haven’t done so yet (/Applications/Utilities/) and issue the following command to turn off Gatekeeper:

sudo spctl --master-disable

Hit return and enter the admin password as usually required by sudo, and Gatekeeper will instantly be disabled. If you feel like confirming this, you can do so with the –status flag and the same command, like so:

spctl --status

This will report back ‘assessments disabled’ to indicate that Gatekeeper has been turned off. You will also find that the Gatekeeper Security preference panel will be set to ‘Everywhere’.

Enable Gatekeeper from the Command Line of Mac OS X

Of course, you can also turn on Gatekeeper from the command line of OS X too by using the following command string:

sudo spctl --master-enable

Hit return and you can confirm the status again with –status:

$ spctl --status
assessments enabled

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.