Run a process as root (asking only one time the root password)
Run a process as root (asking only one time the root password)
- Subject: Run a process as root (asking only one time the root password)
- From: "Hell's KItchen Hell's KItchen" <email@hidden>
- Date: Thu, 21 Jun 2007 16:57:35 +0200
Hello guys,
I need to execute a command-line process as root. I've tried using
NSTask and BLAuthentication class (Security Framework). Everything
works fine but each new start of the program will require again that
password. So my question... is possible to authenticate only one time
the app and mantain that privileges between multiple sessions?
I've discovered some infos about setuid. Is it the right solution? How
can I use it?
Thanks a lot for replies.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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