Re: execute system("some script") on behalf of root from non-root app
Re: execute system("some script") on behalf of root from non-root app
- Subject: Re: execute system("some script") on behalf of root from non-root app
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 5 Jan 2011 12:31:01 -0700
On Jan 5, 2011, at 12:24 PM, eveningnick eveningnick wrote:
> Having clicked on a button, it requests admin's password and launches
> the helper tool. But in System Console i see messages like "to unload
> kext you need to be root", "unable to stop the daemon". Only agent can
> be stopped.
> Why does this happen? Isn't my helper application works already on
> behalf of root already?
No.
> Then why does it ask me to switch to root once
> again if it is lauched as root already?
It isn't launched as root. AEWP() launches tasks with root privileges, but it doesn't launch them _as_ root. There is a difference. Check the archives for more details; this has come up many times.
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