AuthSample
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