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