How to make a File "immutable" or "unalterable"in Linux
It cannot be changed nor deleted even by root. Note this works on (ext2/ext3) filesystems.
And, yes, root can delete after it's changed back.
As root:
$ chattr +i filename
And to change it back:
$ chattr -i filename
List attributes
$ lsattr filename
Monday, February 25, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment