• 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: [Q] Unlocking an arbitrary file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] Unlocking an arbitrary file?


  • Subject: Re: [Q] Unlocking an arbitrary file?
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 25 Sep 2002 00:43:00 -0500

On Tuesday, September 24, 2002, at 09:19 PM, Ando Sonenblick wrote:

Gang,

I9m looking to make a simple app that will take any files dragged onto it
and unlock them. I want this because OSX doesn9t seem to have any feature
like OS9 did: hold down the option key while emptying the trash to allow it
to toss locked files -- unless any of you know how to get the Finder to do
this? I searched, tried all sorts of stuff, asked around but to no avail.

So far as I can tell, you don't even need to hold down the Option key to empty a locked item in Jaguar - the Trash seems to be able to delete everything in it, every time, no matter what. Even chowning the file to root:wheel and chmodding the file to 000 doesn't stop the Trash from dutifully zapping it when I choose Empty Trash.

To be honest, I have no idea how it's doing this. My best guess is that it's having coreservicesd or SecurityServer or some other daemon that's running as root delete the files. I just hope it's not something that could be exploited...

Charles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [Q] Unlocking an arbitrary file?
      • From: Sherm Pendley <email@hidden>
References: 
 >[Q] Unlocking an arbitrary file? (From: Ando Sonenblick <email@hidden>)

  • Prev by Date: multi user develloping
  • Next by Date: Re: multi user develloping
  • Previous by thread: Re: [Q] Unlocking an arbitrary file?
  • Next by thread: Re: [Q] Unlocking an arbitrary file?
  • Index(es):
    • Date
    • Thread