Make files undeletable with chattr
Posted: Mon 14 Nov 2005, 17:53
Here is a cool tip on how you can make files on your system immutable. By immutable, I mean even root can't delete the files if he choose to. Linux ships with a tool called chattr which can be used for the purpose. 'chattr' is similar to the 'attrib' DOS equivalent tool but much more powerful and flexible.
To make your file (test_file) immutable
# chattr +i test_file
Full info
http://tinyurl.com/9mkzk
To make your file (test_file) immutable
# chattr +i test_file
Full info
http://tinyurl.com/9mkzk