Skip to content

Instantly share code, notes, and snippets.

@rafpaf
Last active August 30, 2022 18:43
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 rafpaf/427da77a1dd17a295a3e21c9db8852df to your computer and use it in GitHub Desktop.
Save rafpaf/427da77a1dd17a295a3e21c9db8852df to your computer and use it in GitHub Desktop.

In my MacBook's system preferences, the Security & Privacy pane won't open, so I can't use the interface to grant applications high-level control over the computer, which lots of them need. So here's a workaround:

Boot into macOS recovery mode, open a Terminal, then:

csrutil disable

Restart your computer. To grant TCC (Transparency, Consent, and Control) access to all applications that have requested it, run this:

sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "update access set auth_value = 2"

To grant TCC access to Google Chrome, run:

sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "update access set auth_value = 2 where client = 'com.google.Chrome'"

To grant this kind of access to another application, look up its identifying string by running this:

sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "select * from access"

You'll see lines like this:

kTCCServiceAccessibility|us.zoom.xos|0|2|4|1|...

Now you know that Zoom's identifying string is us.zoom.xos.

To restore System Integrity Protection, boot again into macOS recovery mode, open a Terminal, and run:

csrutil enable

I found that this simple method worked for me, but you can also use a number of tools, including https://github.com/jacobsalmela/tccutil.

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