access root's default database
access root's default database
- Subject: access root's default database
- From: Braden Thomas <email@hidden>
- Date: Fri, 20 May 2005 23:54:19 -0400
Hello list,
I'm trying to access the root user's default database from a
PreferencePane. I tried using AuthorizationExecuteWithPrivileges
with the system.privilege.admin right and just executing the /usr/bin/
defaults binary, but for some reason I wasn't accessing the same
defaults that I would see if I ran defaults as root. What is the
best way to do this? What is the right that I need to request in
order to access root's defaults database?
To be honest, authorization in OS X has always been confusing to me,
and until now I've used authorization by only doing what's very
similar to the examples that can be found in documentation. I'm
having trouble understanding how I should go about this.
Thanks for any help/suggestions,
Braden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden