Re: NSAuthorizationView
Re: NSAuthorizationView
- Subject: Re: NSAuthorizationView
- From: Chris Hanson <email@hidden>
- Date: Sun, 12 Oct 2003 14:00:34 -0500
On Sunday, October 12, 2003, at 10:19 AM, Nikolay Ilduganov wrote:
My program requires root access. An I want standard lock/unlock button
at the bottom of window for free :)
That's not how it works. Your application can never get root access if
it doesn't start out as root; the Unix security model does not allow
processes to elevate their own privileges.
You need to use Authorization Services to run a helper tool with root
privileges that actually does the work. Apple has two examples,
AuthSample and MoreAuthSample, that will show you how to do this.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.