• 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
Re: NSFileManager & Root Permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager & Root Permissions


  • Subject: Re: NSFileManager & Root Permissions
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 15 Dec 2006 11:42:53 -0700


On Dec 15, 2006, at 11:14 AM, Keith Duncan wrote:

Thanks that link does help, I guess now my non-admin users will be prompted for their password to install

Non-admin users are prompted for an admin user name and password when you use the authorization functions. If they can't provide one or get the password wrong, then they will not be authorized.


but I still can't see how I would authorize as root?

The function AuthorizationExecuteWithPrivileges() runs programs with root privileges. To run them as root, you'll need to run the program through a re-UID wrapper; see gluprunner.c in <http://sourceforge.net/ projects/ii2/> for an example of how to do that.


Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSFileManager & Root Permissions (From: Keith Duncan <email@hidden>)
 >Re: NSFileManager & Root Permissions (From: Nick Zitzmann <email@hidden>)
 >Re: NSFileManager & Root Permissions (From: Keith Duncan <email@hidden>)

  • Prev by Date: Efficient comparing of two directories
  • Next by Date: Re: Providing AppleScript support for users in a Core Data app
  • Previous by thread: Re: NSFileManager & Root Permissions
  • Next by thread: Providing AppleScript support for users in a Core Data app
  • Index(es):
    • Date
    • Thread