To disable Gatekeeper, Use the command: sudo spctl --global-disable
And to re-enable Gatekeep, type this command in terminal: sudo spct; --global-enable.
the old command spctl --master is no longer supported in mac.
This change was introduced in Mac OS 10.15.7 (last version on Catalina) probably because i was last using it just 1 month back and the spctl manpage had the new guidlines.
The global command works perfectly on all versions above OS 10.15.7 till Mac OS Montery 12.2.1 (latest stable version).
Tbh, its much easier to read manpages as i too couldn't find this solution on web!!
#Gatekeeperworking
Topic:
App & System Services
SubTopic:
General
Tags: