access root's default database
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello list, Thanks for any help/suggestions, Braden _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Braden Thomas