Hi Kyle,
Thanks for the reply.
So, are you saying I should use a setuid tool instead of AEWP? Can you
suggest some recommended way to do it?

2010/7/20 Kyle Sluder <kyle.slu...@gmail.com>

> On Tue, Jul 20, 2010 at 1:34 AM, Luca C. <luca.pazzere...@gmail.com>
> wrote:
> > Hi everyone,
> > I'm having a strange problem. I create the right authorization to get the
> > privileges I want, then I just make a simple call to pmset.
>
> Don't use AEWP to run arbitrary programs. See the AEWP documentation
> for the correct approach:
>
> http://developer.apple.com/mac/library/documentation/Security/Reference/authorization_ref/Reference/reference.html#//apple_ref/c/func/AuthorizationExecuteWithPrivileges
>
> --Kyle Sluder
>



-- 
Luca C.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to