New answers tagged xattr
To the point raised in some of the other answers, you could use the mv utility to suggest a social barrier: mv yourfile THIS_IS_user38537_FILE_PLEASE_DO_NOT_REMOVE
[Replacement for old answer] You could simply make a hard link to the file: ln email_file hard_link Then, if it's deleted, it still exists and can easily be restored. [Old answer, based on misunderstanding of the problem] One solution would be to make the script itself immutable with chattr, but turn it on and off, not by renaming it, but with the ...
Are the "other admins" malicious? Are they out to get you? If yes, there's probably nothing you can do. If not, perhaps the simplest solution is to change the script to put the file in your home directory. A variation on this is to make hard link(s) to the file in different director(ies); as long as they don't delete (unlink) all the links, the file will ...
That comment about "other admins" hints that you have root privilege on the system where you want to store the file. Anything that you could setup in the way of permissions could be undone by someone with the same privileges. If that is not a concern, and no one has extended privileges, then you could simply put the file in /tmp or /var/tmp, which usually ...
Top 50 recent answers are included