• 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: execute system("some script") on behalf of root from non-root app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: execute system("some script") on behalf of root from non-root app
      • From: eveningnick eveningnick <email@hidden>
References: 
 >execute system("some script") on behalf of root from non-root app (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: execute system("some script") on behalf of root from non-root app
  • Next by Date: Re: execute system("some script") on behalf of root from non-root app
  • Previous by thread: execute system("some script") on behalf of root from non-root app
  • Next by thread: Re: execute system("some script") on behalf of root from non-root app
  • Index(es):
    • Date
    • Thread