I have a script that checks for the presence of a file, and if it exists, read a list of email addresses from it to send notifications. When I don't need to be notified, for instance, when I'm at work already monitoring the output, I'll rename it. I just don't want other admins to possibly delete it.
chattr +i will make the file immutable, but I only want to prevent the file from being deleted. I figure the chattr program would be using the inode number to track attributes and not the file name.
Is there a utility that can make this happen?