Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges?



On 30/08/2007, Uli Kusterer <email@hidden> wrote:
> On 30.08.2007, at 11:39, Finlay Dobbie wrote:
> > And why exactly would you do this rather than using unlink() or
> > FSDeleteObject() or whatever?
>
>   Permissions? If he calls unlink() himself, he has the wrong
> permissions. So if he used unlink, he'd have to create a command line
> tool that does the same as "rm" just to hand that to
> AuthorizationExecuteWithPrivileges().

The OP is looking for a way to execute general shell commands as root
via AEWP(). Probably the correct approach is to write a small
restricted helper tool which does the particular operations he wants.
AEWP() was not designed to be invoked tens of times to execute the
simple utilities in /bin.

 -- Finlay
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: judiexu <email@hidden>)
 >Re: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: email@hidden)
 >Re: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: "Mark Wagner" <email@hidden>)
 >Re: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: email@hidden)
 >Re: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: "Finlay Dobbie" <email@hidden>)
 >Re: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: Uli Kusterer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.