• 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
Using the security framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using the security framework


  • Subject: Using the security framework
  • From: Joe Turner <email@hidden>
  • Date: Sat, 03 Jan 2009 18:50:57 -0600

Hello!

I am making a hard drive cloner/backuper, and to do some deleting and copying, I need to use the security framework. What I need to be able to do is have the user type in their password one time, and then it would give me system.privilege.admin rights until a time that they want to unauthorized it (could be days, weeks, months, years). I have looked through the security framework, but have not really found how to have one system.privilege.admin authorization, and have it last a long time. So, if anyone could point me in the right direction with this, like what methods to use, and what parameters to use.

I'm also wondering another thing. To delete the files, I need admin privileges, but, do I need to create a new target (e.g. a shell script) to do the copying and then run the command (blanking on the name) that runs the script at a given path with admin privileges. Or, could I somehow use NSFileManager in an authorized state.

Thanks for any help!

Joe
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Using the security framework
      • From: Chris Hanson <email@hidden>
    • Re: Using the security framework
      • From: Peter N Lewis <email@hidden>
    • Re: Using the security framework
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Localize Attributed Strings?
  • Next by Date: hitTest: On Moving CALayer
  • Previous by thread: Re: Localize Attributed Strings?
  • Next by thread: Re: Using the security framework
  • Index(es):
    • Date
    • Thread