Re: simple root authentication for executing shell scripts
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.