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

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


  • Follow-Ups:
    • Re: Run a process as root (asking only one time the root password)
      • From: Oleg Kibirev <email@hidden>
    • Re: Run a process as root (asking only one time the root password)
      • From: "I. Savant" <email@hidden>
    • Re: Run a process as root (asking only one time the root password)
      • From: "Daniel T. Staal" <email@hidden>
    • Re: Run a process as root (asking only one time the root password)
      • From: "Finlay Dobbie" <email@hidden>
  • Prev by Date: Re: Trying to Swap Byte on Floats
  • Next by Date: Re: Run a process as root (asking only one time the root password)
  • Previous by thread: Re: Cocoa-dev Digest, Vol 4, Issue 582
  • Next by thread: Re: Run a process as root (asking only one time the root password)
  • Index(es):
    • Date
    • Thread