-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCC.db protected by SIP in Sierra #18
Comments
Just tried - Seems as now TCC.db is protected by SIP - It is now readonly |
Yeah, I was seeing this, too. Not sure there will be a great way around it besides disabling SIP... |
Error is: Traceback (most recent call last):
File "./tccutil.py", line 294, in <module>
main()
File "./tccutil.py", line 284, in main
enable(item)
File "./tccutil.py", line 232, in enable
c.execute("UPDATE access SET allowed='1' WHERE client='%s'" % (client))
sqlite3.OperationalError: attempt to write a readonly database |
Any updates on the issue above? We have been hit with the same issue and wondering if anyone found a workaround to get pass this and set the accessibility via command line. |
I personally have not bothered trying to circumvent SIP and don't plan to. I like SIP despite some headaches it can cause for traditional ways of doing things. Ideally, it would be nice if Apple were to implement this open source software as part of their OS. They already have there own |
I have my database modified since I did this before SIP existed, yet SIP protects the file. Perhaps it is possible to go into SIP-less mode, update the file, and then turn it back on? I have not tried this yet as I have not needed to yet. The entries for bash, tmux, sh, etc all show up in Accessibility. And also there are these defaults keys which have full paths, either file or directory: defaults write com.apple.universalaccessAuthWarning /usr/libexec -bool true
defaults write com.apple.universalaccessAuthWarning /usr/libexec/sshd-keygen-wrapper -bool true I have not tried to add an entry this way but I am already fairly certain it will not work because otherwise this utility would not exist. |
Isn't a reboot necessary in order to enable/disable SIP? I've been out of the Mac world for a couple of years now so I'm not familiar with what the |
Yes a reboot is required. You have to get into recovery mode, disable SIP, come back, edit, go back to recovery mode, and maybe it will work. I have not tried this and yes it's annoying but at least it keeps SIP enabled. |
I suppose a notice could be added to the utility about SIP and this possible workaround--at the very least. |
This is no longer an issue on Mojave. macOS 10.14 will have a section named Automation under Security & Privacy / Privacy. This utility is no longer necessary at that point. Any app that attempts to use automation will bring up a prompt to confirm once. |
Interesting..I guess that's good because I don't have time to maintain it anymore. Thanks @Tatsh |
works for me with
|
What happens when you use a writable command? |
Clearly it does not work on Mojave:
Any workarounds as I really need to bless |
|
Yes |
I'll add some more info in the message to let users know about SIP |
@jacobsalmela Could you cut a new release (including #32)? So that the @Homebrew formula can be updated… for those with SIP disabled. |
I've been meaning to, but I haven't made time to learn all their rules for updating a formula. When I first did it, it wasn't a super easy process.. I'll give it my best, but if anyone has a quick and dirty version of commands to run, let me know. |
Never mind. It's quite easy with an existing formula in place: v1.2.6 is now available via Homebrew. 😄 |
@jacobsalmela Ah I would have handled the PR to Homebrew… as I deal with formulae/casks quite a lot! Just needed the release… But yeah it should be much easier to update as opposed to creating new. Nice one, thanks 👍🏼 |
Hi, I'm on Mojave 10.14.6. When I try to use tccutil, I get :
However, I've disabled SIP:
Thus I'm wondering if SIP is the real problem here. Thank you in advance for your help. |
Hmmm. Thanks for the note. There might be more work to do then... |
What does SIP even stand for? |
About System Integrity Protection on your Mac |
Yeah, it basically prevents tools like this from hacking their way into things we know nothing about. It's a good thing 😄 . |
I've noticed that you can access TCC.db even with SIP enabled, if you grant Full Disk Access to Terminal.app and then open the TCC.db with sqlite3. Note: tested with macOS 11 Big Sur. |
That makes sense and is a good solution for this issue I think--assuming you're comfortable doing it. Thanks for the note! |
Access, but are you able to write to it? |
I'm moving this into a Discussion. |
Was this tested on Sierra latest beta?
The text was updated successfully, but these errors were encountered: