Skip to content

Instantly share code, notes, and snippets.

@rodrigozrusso
Forked from mtauraso/add_launchd_to_tcc.sh
Created September 26, 2016 15:37
Show Gist options
  • Save rodrigozrusso/797e2e66b5a85aa97cb0324a25590d09 to your computer and use it in GitHub Desktop.
Save rodrigozrusso/797e2e66b5a85aa97cb0324a25590d09 to your computer and use it in GitHub Desktop.
TCC Database Script
#!/bin/bash
# This will add lauchd to the list of allowed processes for accessibility access
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "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/com.apple.TCC/TCC.db 'select * from access'
echo "Restart is required for these changes to take effect"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment