Re: Create folder in protected directory
Re: Create folder in protected directory
- Subject: Re: Create folder in protected directory
- From: Kyle Sluder <email@hidden>
- Date: Thu, 16 Apr 2009 20:27:38 -0400
On Thu, Apr 16, 2009 at 7:23 PM, Chris Purcell <email@hidden> wrote:
> Thanks for reply Kyle. The app restores a user's user folder and needs to
> recreate that folder within the /Users directory. Is there an easier way to
> accomplish this then having to use the Authorization services C library?
Ah. I'm afraid not, at least not directly. I think there's some
machinery in the OS to recreate a skeleton home directory for users,
but that might only be involved in a network environment.
Make sure to read and understand the BetterAuthorizationSample and the
security implications mentioned therein. Also read up on messages
regarding AuthorizationExecuteWithPrivileges on this list (maybe also
the CDSA list as well? I'm not a subscriber).
Good luck,
--Kyle Sluder
_______________________________________________
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