Mailing Lists: Apple Mailing Lists

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

Re: access root's default database



Hi Braden,

On May 20, 2005, at 8:54 PM, Braden Thomas wrote:

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?

This may not be the best place for your questions...PreferencePanes are a Cocoa technology so the right people may be on the cocoa-dev list instead.


The team that maintains AuthorizationExecuteWithPrivileges hangs out on the apple-cdsa list.

Good luck,
--gc
__________________________________________________________________
Garth Cummings
Apple Developer Technical Support     email@hidden

http://developer.apple.com/technicalsupport

Spotlight on Innovation

Worldwide Developers Conference 2005
June 6-10 in San Francisco
http://developer.apple.com/wwdc


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >access root's default database (From: Braden Thomas <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.