Re: Launch process as root from cocoa app
Re: Launch process as root from cocoa app
- Subject: Re: Launch process as root from cocoa app
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 25 Jan 2010 20:18:52 -0700
On Jan 25, 2010, at 12:57 AM, Nyxem wrote:
> 1 - Using the authorizationRef object of my SFAuthorizationView and call AuthorizationExecuteWithPrivileges() ("/bin/launchctl load /Library/LaunchDaemons/com.mydaemon.plist")
> --> Failed. daemon not launched as root, but as current user.
As you've figured out, AEWP() launches apps with root privileges, but it doesn't run them _as_ root. If you need to launch an app as root for whatever reason via AEWP(), then search the archives for a workaround, because I'm pretty sure I've posted at least one workaround for this years ago...
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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