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