From mboxrd@z Thu Jan 1 00:00:00 1970 From: dave@horsfall.org (Dave Horsfall) Date: Thu, 25 May 2017 11:36:02 +1000 (EST) Subject: [TUHS] can't protect files from deletion v5,v6, or v7 In-Reply-To: References: Message-ID: On Wed, 24 May 2017, Mark Longridge wrote: > Ok, I just did an experiment with the rm command and the results > surprised me. [...] It's always been the case that you need write permission on the parent directory; after all, it's what you are actually updating. > Is there no way to completely protect files from being deleted? Don't make the parent directory writable... And if your OS supports file attributes I believe there's an "immutable" flag. -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."