• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using authorization to enumerate restricted folders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using authorization to enumerate restricted folders?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: find out where is a key equivalent assigned
  • Next by Date: Re: Storing bundle loaded main class instances in NSArray
  • Previous by thread: Re: find out where is a key equivalent assigned
  • Next by thread: Re: Using authorization to enumerate restricted folders?
  • Index(es):
    • Date
    • Thread