RE: Move file with admin priviledges
RE: Move file with admin priviledges
- Subject: RE: Move file with admin priviledges
- From: "Michael Latta" <email@hidden>
- Date: Tue, 24 Oct 2006 15:46:06 -0700
I believe if I remember correctly that you can elevate a sub-process not the
current process. You need to place the copy operation in a sub-process that
you create with elevated privileges. It has been too long for me to
remember details (sorry).
Michael
> -----Original Message-----
> From: cocoa-dev-bounces+lattam=email@hidden [mailto:cocoa-dev-
> bounces+lattam=email@hidden] On Behalf Of AstroK Software
> Sent: Tuesday, October 24, 2006 9:59 AM
> To: email@hidden
> Subject: Move file with admin priviledges
>
> Hi,
>
> I am trying to enable a user to move a file that doesn't belong to
> him or her if he or she can identify himself or herself as an admin,
> with the method [[NSFileManager defaultFileManager]
> movePath:toPath:handler]; I have tried to use the AuthForAll example
> from Apple (which is Carbon, but I thought it could work anyway), and
> I can make the dialogue to identify myself by typing a username and
> password show up, but once I type my password, I still cannot move
> the file...
>
> What did I do wrong?
>
> -- Arthur;
>
> --
> AstroK Software
> Arthur VIGAN
> email@hidden
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden