Re: Run a process as root (asking only one time the root password)
Re: Run a process as root (asking only one time the root password)
- Subject: Re: Run a process as root (asking only one time the root password)
- From: "I. Savant" <email@hidden>
- Date: Thu, 21 Jun 2007 11:18:06 -0400
On 6/21/07, Hell's KItchen Hell's KItchen <email@hidden> wrote:
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.
It works this way for a very good reason. If you're doing this from
a desktop application there is positively *no good reason* not to
require authentication as the system is designed to request it. Any
remotely savvy user would steer clear of your application if they knew
it was behaving in this way.
The best thing for you to do is to read every bit of related
documentation before deciding on your design. What you're doing most
likely isn't what you *should* be doing.
Of course if you'd give more details as to exactly what you're
trying to accomplish, you'd probably get better advice ...
--
I.S.
_______________________________________________
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