Skip to content

Instantly share code, notes, and snippets.

Last active February 10, 2021 04:45
What would you like to do?
TCC Database Script
# This will add lauchd to the list of allowed processes for accessibility access
sudo sqlite3 /Library/Application\ Support/ "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/sbin/launchd',1,1,1,NULL)"
# This outputs the rows in the TCC database
sudo sqlite3 /Library/Application\ Support/ 'select * from access'
echo "Restart is required for these changes to take effect"
Copy link

dugalp commented Aug 14, 2015

Looks pretty useful, but not sure the script is correctly adding launchd, it looks like /sbin/osascript doesn't exist either, is this a typo? Should it say '/sbin/launchd'?

Copy link

Thanks, that is correct. I've updated the gist

Copy link

dugalp commented Mar 9, 2017

I found out that in macOS Sierra, TCC is not allowed to be modified unless SIP is disabled.

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