Immutable: cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file.

chattr +i foo/bar

To remove the immutable attribute:

chattr -i foo/bar

Check status:

lsattr foo/bar

 

Advertisements