I'm looking for a way to stop accidental deletion of some important files in Linux, but with a couple of criteria. The file has to remain writable (so it can of course still be replaced with rubbish data, truncated etc.), and the user must be able to create new files in the same directory.
An ideal solution would have newly created files in the directory pick up the same attributes automatically, but I could work around that in software.
The solution is guarding against someone running a misplaced rm
command.