• 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
Preserving the authority to run a command line tool as root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preserving the authority to run a command line tool as root


  • Subject: Preserving the authority to run a command line tool as root
  • From: "J. Nicholas Jitkoff" <email@hidden>
  • Date: Fri, 15 Jul 2005 08:01:42 -0700

I am working on a utility that uses the pmset command line tool to set scheduled system power-on and wake times. Ideally, I would like to obtain permission from the user to run it and store the permission like the System Preferences app does, allowing the settings to be changed repeatedly, and relocked if needed. Having it rerequest it at launch is a bit of a pain.

I have tried a number of approaches using sudo and the Security.framework. Security.framework, doesn't seem to allow permit permanent permission to run a specific utility, and storing the password and sudioing is a terrible terrible thing to do. Can anyone suggest the best way to approach this?

Thanks,
Nicholas



_______________________________________________
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: Preserving the authority to run a command line tool as root
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Displaying multiple NSView subclasses
  • Next by Date: Re: Cocoa class for queuing operations?
  • Previous by thread: Re: CoreData: "Can't reassign an object to a different store once it has been saved."?
  • Next by thread: Re: Preserving the authority to run a command line tool as root
  • Index(es):
    • Date
    • Thread