Skip to content

Instantly share code, notes, and snippets.

@kennwhite
Last active December 23, 2020 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennwhite/814ff7ed1fd62b921144035c877c3e4c to your computer and use it in GitHub Desktop.
Save kennwhite/814ff7ed1fd62b921144035c877c3e4c to your computer and use it in GitHub Desktop.
Bypass MacOS Gatekeeper for specific apps & executables on command line

To override Big Sur's Gatekeeper restriction: "cannot be opened because the developer cannot be verified" from the command line

Example with MongoDB (can be run against a folder e.g., JavaSDK or individual executables):

xattr -d com.apple.quarantine /Users/me/Downloads/mongodb-macos-x86_64-enterprise-4.4.2/bin/*

This appears to be sticky for all identical versions of that executable, i.e., if you have two copies of the identical binary in unrelated directories, removing quarantine for one seems to enter a file signature hash into the allowed list globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment