Skip to content
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

Error opening Database. You probably need to disable SIP for this to work. #62

Open
edglobo-hmedeiros opened this issue Oct 1, 2022 · 11 comments

Comments

@edglobo-hmedeiros
Copy link

edglobo-hmedeiros commented Oct 1, 2022

Trying to execute some tccuilts commands, but no one is succesfully.

Already set full disk control for terminal app. And the issue remains.
What i need to do?

medeiroshudson ~ % sudo tccutil --digest
/opt/homebrew/bin/tccutil:29: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  osx_version = version(mac_ver()[0])  # mac_ver() returns 10.16 for Big Sur instead 11.+
Error opening Database.  You probably need to disable SIP for this to work.
medeiroshudson ~ % csrutil status 
System Integrity Protection status: disabled.

Thanks.

@jacobsalmela
Copy link
Owner

What version of tccutil.py do you have? Have you looked at this thread?

#44

I still have to validate some things regarding it.

@fengyuan213
Copy link

not working on macOs Venutura13.2.1 (22D68), I already turned the sip off.

  osx_version = version(mac_ver()[0])  # mac_ver() returns 10.16 for Big Sur instead 11.+
Error opening Database.  You probably need to disable SIP for this to work.```

@jacobsalmela
Copy link
Owner

I suspect this will be less and less likely to work with each release. We can use this issue to figure it out for all versions, but I cannot get to the project for a while...

@probablypablito
Copy link

Any update on this? Having the same issue as root & SIP off on Ventura 13.1

@ylluminate
Copy link

Now with the update going into Homebrew and seeing the notification, this has come back to the front of my mind. Please let us know if there's anything further anyone of us might do to help @jacobsalmela!

@jacobsalmela
Copy link
Owner

Yes, I need help. Lol.

I don't have valid test rigs anymore for all the OS flavors and the DB has changed.

I do think Apple will block things like this more actively and since I haven't made many of the updates as of late, I am not sure where to start diagnosing and making a solution. Let alone the time to do it amongst my other projects and busy home life

@ylluminate
Copy link

Understand that!!!!!!! If you can offer some steps / suggestions / info you may need and how we can facilitate it, would be happy to gather info and so on.

@jacobsalmela
Copy link
Owner

Awesome!

I think we need to find the last version of macOS this worked with reliably. I think it may even have been the last big cat names or 1/2 releases after those... Then we can narrow down the change.

I think we would also need a dump of the DB schema for the required table(s). And verify who can/can't write to it with and without SIP enabled.

Something like that would probably be a good start.

@ylluminate
Copy link

Hmm - last "big cat name" was 10.8 (Mountain Lion), but I didn't think TCC came around until 10.14'ish... Am I misunderstanding?

Would be happy to do some data gathering here once we nail this down.

@jacobsalmela
Copy link
Owner

Obviously, I can't keep track of macOS releases and time is skewed in my brain.

Guess we could just look at the first version I supported for the app 😃

@ylluminate
Copy link

So my thought initially, then, is to attempt to test on 10.14 and then test on 10.15 and report back hopefully any pertinent information. I am not certain if I can do it sans SIP given that these will be installs via Parallels on an old MacPro I have and I recall that some things were a bit dicey from time to time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants