• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
access root's default database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: access root's default database
      • From: Garth Cummings <email@hidden>
  • Prev by Date: LDAP, DirectoryService and loginwindow in Tiger
  • Next by Date: Re: Bsd sockets and GCC 4.0
  • Previous by thread: Re: LDAP, DirectoryService and loginwindow in Tiger
  • Next by thread: Re: access root's default database
  • Index(es):
    • Date
    • Thread