• 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
Re: Run a process as root (asking only one time the root password)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Run a process as root (asking only one time the root password)
      • From: "Finlay Dobbie" <email@hidden>
References: 
 >Run a process as root (asking only one time the root password) (From: "Hell's KItchen Hell's KItchen" <email@hidden>)

  • Prev by Date: Re: Run a process as root (asking only one time the root password)
  • Next by Date: Re: Run a process as root (asking only one time the root password)
  • Previous by thread: Re: Run a process as root (asking only one time the root password)
  • Next by thread: Re: Run a process as root (asking only one time the root password)
  • Index(es):
    • Date
    • Thread