[TUHS] can't protect files from deletion v5,v6, or v7

Dave Horsfall dave at horsfall.org
Thu May 25 11:36:02 AEST 2017

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

More information about the TUHS mailing list