• 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: Save authentication to keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Save authentication to keychain
      • From: Jerry Brace <email@hidden>
References: 
 >Save authentication to keychain (From: Jerry Brace <email@hidden>)

  • Prev by Date: Save authentication to keychain
  • Next by Date: Re: NSArrayControllers and sorting
  • Previous by thread: Save authentication to keychain
  • Next by thread: Re: Save authentication to keychain
  • Index(es):
    • Date
    • Thread