jacobsalmela / tccutil

♿️ Command line tool to modify OS X's accessibility database (TCC.db)
https://jacobsalmela.com/2014/07/14/tccutil-py-command-line-utility-modifying-accessibility-database-os-x/
GNU General Public License v2.0
463 stars 61 forks source link

Authorization Denied #54

Open sharanvelu opened 2 years ago

sharanvelu commented 2 years ago
Screenshot 2021-11-22 at 17 51 26

I am getting authorization denied issues.

System : M1 Mac OS : MacOs 11.5.1 (20G80)

jacobsalmela commented 2 years ago

Is SIP enabled? Also can you post the output of the --digest flag?

sharanvelu commented 2 years ago

Output of "--digest" flag.

Screenshot 2021-11-22 at 18 03 29

Yes SIP is enabled.

matrunchyk commented 2 years ago

My output of --digest doesn't give any errors, just a hex code. Though when I do sudo ./tccutil.py -i /usr/bin/osascript it says

Attempting to write a readonly database. You probably need to disable SIP.

jacobsalmela commented 2 years ago

A hex code? It should print a short hash; is that what you meant? Also, what is it?

matrunchyk commented 2 years ago

Yes, this is the hash value: cef70648de

DanLipsitt commented 2 years ago

I can't even view the extended attributes of the database file:

$ sudo xattr '/Library/Application Support/com.apple.TCC/TCC.db'
xattr: [Errno 1] Operation not permitted: '/Library/Application Support/com.apple.TCC/TCC.db'
$ ls -lO '/Library/Application Support/com.apple.TCC/TCC.db'
-rw-r--r--  1 root  wheel  restricted 69632 Apr  5 10:30 /Library/Application Support/com.apple.TCC/TCC.db