Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

access root's default database



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.