Preserving the authority to run a command line tool as root
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