Enable or Disable Gatekeeper with spctl --master
Temporarily turn app assessment off to install unsigned software, then turn it back on.
01Command
$ sudo spctl --master-disable # re-enable with: sudo spctl --master-enable02What it does
Gatekeeper is macOS's check that apps come from identified developers; --master-disable switches the policy to 'Anywhere' so unsigned apps launch, and --master-enable restores the default protection. On recent macOS the option only appears in System Settings while disabled. Prefer the narrower alternative — right-click the blocked app and choose Open — which exempts a single app instead of the whole system.
03Risk
04Undo
$ sudo spctl --master-enable05Sources
- Safely open apps on your MacEvidence: Apple's guidance on opening apps Gatekeeper blocks and the risks of bypassing assessment.
- spctl - security assessment policy toolEvidence: Documents spctl --master-disable/--master-enable for turning Gatekeeper assessment off and on.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Check whether an application bundle was signed properly and hasn't been modified since.
List and clear extended attributes — the quarantine flag, Finder tags, and download provenance — on any file.
Build an AES-256 encrypted .dmg vault from the Terminal — no Disk Utility clicking required.