Re: Problems running a shell script as root
Re: Problems running a shell script as root
- Subject: Re: Problems running a shell script as root
- From: Chris Hanson <email@hidden>
- Date: Fri, 27 Jul 2007 15:38:11 -0700
On Jul 27, 2007, at 1:26 PM, deepak gopal wrote:
Does anyone know what I am doing wrong here?
I don't know what you're doing wrong, but I strongly suggest re-
reading the "Performing Privileged Operations with Authorization
Services" document, and paying particular attention to the flow of
control between the application and a helper utility that it runs. I
also recommend taking a look at the appropriate sample code.
Trying to "run a shell script as root" using
AuthorizationExecuteWithPrivileges sounds like a bad idea, since a
shell script cannot accept an authorization reference from the host
application and verify that the host application is allowed to be
asking the script to perform the requested privileged operation.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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