• 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
Re: how to delete the current user's directory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to delete the current user's directory?


  • Subject: Re: how to delete the current user's directory?
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 01 Sep 2008 18:00:24 -0700

On Sep 1, 2008, at 3:46 AM, XiaoGang Li wrote:

hi, list, I have an uninstaller application , which is used to delete
the files installed; and also i have a file which located in the current
user's directory, like the ~/Library/LaunchAgents/com.****.plist. and how
can i delete this kind of file, i have tried the
AuthorizationExecuteWithPrivileges
API, it seems not workable, do i give a wrong flag value or something else?

NEVER use AuthorizationExecuteWithPrivileges like that.

That is not what AuthorizationExecuteWithPrivileges is for.

There is a large amount of documentation on the Apple Developer Connection web site describing how to perform privileged operations correctly and securely. AuthorizationExecuteWithPrivileges is not how to do so.

  -- Chris

_______________________________________________

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: how to delete the current user's directory?
      • From: "Chris Suter" <email@hidden>
References: 
 >how to delete the current user's directory? (From: "XiaoGang Li" <email@hidden>)

  • Prev by Date: Re: HFS Path To POSIX Path
  • Next by Date: Re: HFS Path To POSIX Path
  • Previous by thread: Re: how to delete the current user's directory?
  • Next by thread: Re: how to delete the current user's directory?
  • Index(es):
    • Date
    • Thread