• 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: Delete myDriver.kext files from normal user.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete myDriver.kext files from normal user.


  • Subject: Re: Delete myDriver.kext files from normal user.
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 17 Oct 2008 16:21:03 -0400

On Fri, Oct 17, 2008 at 8:51 AM, Sachin Kumar <email@hidden> wrote:
> I am using system("rm -r myDriver.kext") to delete the file.

Please, *don't do this*.  Pretend 'system' doesn't exist.  unlink(2)
does exactly what you're looking for.

> Is there any other method to delete the files in cocoa even from normal users...

No.  This is computer security 101.  If you need to perform privileged
operations, use AuthorizationExecuteWithPrivileges.  Using this
function requires careful attention to detail.

--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

  • Follow-Ups:
    • Re: Delete myDriver.kext files from normal user.
      • From: Jonathon Kuo <email@hidden>
References: 
 >Delete myDriver.kext files from normal user. (From: Sachin Kumar <email@hidden>)

  • Prev by Date: Re: Notification on Login Items change?
  • Next by Date: Re: notification of NSSlider end of tracking
  • Previous by thread: Delete myDriver.kext files from normal user.
  • Next by thread: Re: Delete myDriver.kext files from normal user.
  • Index(es):
    • Date
    • Thread