Re: NSFileManager & Root Permissions
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