Toggle Allow apps downloaded from anywhere

There's a setting on Mac OS X for allowing apps to be installed from anywhere or only from signed developers. If you want to automate changing this setting via terminal command, this is how you do it.

spctlmasterenable

sudo spctl master-enable

spctlmasterdisable

sudo spctl master-disable

The spctl command is even more versatile than that. More details at Gatekeeper Fundamentals, Part 2.

Leave a Reply

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