• 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: simple root authentication for executing shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple root authentication for executing shell scripts


  • Subject: Re: simple root authentication for executing shell scripts
  • From: Sailesh <email@hidden>
  • Date: Mon, 6 Oct 2003 20:19:23 -0700

Take a look at:
http://developer.apple.com/documentation/Security/Reference/ authorization_ref/01authref_ref/function_group_4.html

When you say you were searching the archive what site did you use ? The search tool on apple's site sucks ass. A search for run as root on http://cocoa.mamasam.com returns tons of relevant results.

good luck
Sailesh

On Monday, Oct 6, 2003, at 11:38 America/Vancouver, Huyler, Christopher M wrote:

I have been searching the archives and sample programs but I can't seem
to find a simple solution to my problem. I am writing a PreferencePane
for our application which has several daemons that must be run as root.
On a normal unix machine you would su to root then type "InoStart" (a
fairly complex shell script) to start all the daemons. With my
preference pane, I got as far as using NSTask to launch the script but
now I need it to launch as root or sudo.

Can someone point me to some simple code that will accomplish this? I
looked at the MoreSecurity sample code and that seems like a lot of code
to perform such a simple task. I basically need an "authenticate" Obj-C
function that will run when the user presses the unlock button, and a
"start" Obj-C function that will execute a command-line script as root.

Sorry if this has been asked a million times,
~ Chris

--
Christopher Huyler
Computer Associates
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >simple root authentication for executing shell scripts (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Re: [OT] serial number validation algorithm?
  • Next by Date: Strategies for fitting an NSWindow to its content?
  • Previous by thread: simple root authentication for executing shell scripts
  • Next by thread: Re: simple root authentication for executing shell scripts
  • Index(es):
    • Date
    • Thread