Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
Posted: Mon 14 Nov 2005, 13:53 Post subject:
Make files undeletable with chattr
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 _________________ Puppy WIKI
Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
Posted: Tue 15 Nov 2005, 18:57 Post subject:
Lobster-proof system:
chattr +i -R /*
(assuming it has the -R recursive option)
Just kidding. I haven't heard of you crashing and burning in months. You must have learned to waddle over ice like a true penguin-puppy-lobster hybrid _________________ Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum