Prevent Gatekeeper from waking up on OS X Yosemite and OS X El Capitan

Gatekeeper-disable-osx-0

Gatekeeper is a feature that has been practically always present in OS X as a security measure to prevent malicious code from running on the system that is not signed by trusted developers by certificate. Surely more than once when downloading a free software application from the Internet, when executing it we get the error »This application cannot be opened because it comes from an unidentified developer».

For this reason many developers and system administrators are forced to deactivate this function since can be really annoying. The only but is that if we do it directly from the option within the system, it will leave a period of 30 days of deactivation but below it will leave activated a reset command, by which after 30 days it will be activated again.

Gatekeeper-disable-osx-1

Let's first see how to disable this option directly from the system. The process is as simple as accessing > System Preferences> System and Privacy and within the General tab, we will click on the padlock at the bottom where we will enter our administrator password and mark the option "Any site". This will disable it with the 30-day reset option.

To avoid this we have the option of deactivating this reset directly from the terminal in Applications> Utilities> Terminal by entering the following command and also entering our administrator password:

sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO

In any case, there is always the option of returning to the initial configuration simply by entering the same command but changing the option "NO" to "YES", that is:

sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool YES

Really the usefulness of this option is somewhat limited since I mainly advise it to production or development teams within a closed security system, since for the average user it does not make sense to deactivate an option that gives a full month to do whatever we need.


Be the first to comment

Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.