Re: Save authentication to keychain
Re: Save authentication to keychain
- Subject: Re: Save authentication to keychain
- From: James Bucanek <email@hidden>
- Date: Sat, 6 Aug 2005 13:43:51 -0700
Jerry Brace wrote on Saturday, August 6, 2005:
>Does anyone know how to save authentication information to the keychain?
>My app requires access to a unix binary as root and after prompting for authentication it times out after a period
>of time. I'd like to save that information where the app can retrieve it whenever it needs it. Any ideas?
You can't save an authentication. An authentication is a "ticket" that expires after a period of time. To authorize a binary to run as root forever, you need to authorize the user once and use that privilege to install the binary as a set-UID executable with an owner of root. Once installed, the binary can run as root whenever it needs to, without any additional authorization. Sample code for how to do this can be found here: <http://developer.apple.com/samplecode/MoreAuthSample/MoreAuthSample.html>
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden