• 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: Can't get "pmset" to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get "pmset" to work


  • Subject: Re: Can't get "pmset" to work
  • From: "Luca C." <email@hidden>
  • Date: Wed, 21 Jul 2010 01:48:41 +0200

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 <email@hidden>

> On Tue, Jul 20, 2010 at 1:34 AM, Luca C. <email@hidden>
> 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 (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: Can't get "pmset" to work
      • From: Kyle Sluder <email@hidden>
References: 
 >Can't get "pmset" to work (From: "Luca C." <email@hidden>)
 >Re: Can't get "pmset" to work (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: WebView pagination for printing
  • Next by Date: Re: Can't get "pmset" to work
  • Previous by thread: Re: Can't get "pmset" to work
  • Next by thread: Re: Can't get "pmset" to work
  • Index(es):
    • Date
    • Thread