• 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
AuthSample
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AuthSample


  • Subject: AuthSample
  • From: "Andrew James" <email@hidden>
  • Date: Sun, 28 Oct 2007 22:08:21 +1030

Hi,
I use a loader in my program to achieve root powers, however for some reason
in leopard it has become broken. The code is based off authsample and works
if i use a fork to execute the commands
(chown/chmod/kextload/kextunload/pmset) however if i place a simple system()
call it fails to achieve the root powers. Now to my understanding a fork
should have the exact same powers as the parent.

So does anyone know why the fork is needed?



PS. Does anyone else use a "loader" and is able to send some sample code
which also gets a result from the command it exectuted?

PSS. My code was modified from someone elses who was based on authtool which
works but means i might be missing some original code and explanations
_______________________________________________

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: AuthSample
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: iChat Theater help...
  • Next by Date: Re: NSFileWrapper with XML document
  • Previous by thread: iChat Theater help...
  • Next by thread: Re: AuthSample
  • Index(es):
    • Date
    • Thread