[Ilugc] prevent files from deleting even by root itself

  • From: tshrinivasan@xxxxxxxxx (Shrinivasan)
  • Date: Thu May 3 10:46:26 2007

On Thursday 03 May 2007 10:31, Shrinivasan wrote:

Friends.

I want to protect some files from deleting even from root itself.

I have done it with chmod and some option.
If you give that, the file can not be deleted even by root.


Myself found.

That is not chmod.
it is chattr

chattr +i <filename> to give protection.
chattr -i <filename> to revoke the protection.

-- 
dear,
T.Shrinivasan.


I share My Experiences with Linux, Here:
http://goinggnu.wordpress.com

Other related posts: