Using authorization to enumerate restricted folders?
Using authorization to enumerate restricted folders?
- Subject: Using authorization to enumerate restricted folders?
- From: Oleg Krupnov <email@hidden>
- Date: Thu, 9 Apr 2009 16:54:58 +0300
I want to programmatically enumerate files within a folder with
restricted access (such as home folder of another user), similar to
using sudo command in Terminal.
I have read the "Performing Privileged Operations With Authorization
Services" guide and I have written the code that creates the
authorization reference and shows the dialog for entering the admin
password.
Now I am puzzled what do I do next? How do I use this authorization
reference, how do I pass it to the file manipulation functions?
I tried to enumerate the restricted folders, but I keep getting the
permission denied error.
Thanks!
_______________________________________________
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