Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Files and Attributes: chattr

Mar 24, 2009, 03:02 (1 Talkback[s])
(Other stories by Juliet Kemp)

"The syntax is

chattr +option filename and options can be reversed with -option.

"+i: Makes a file immutable: even root can't alter it. This is useful to protect against accidentally altering particularly important files.

"+a: Sets files such that they can only be appended to, not overwritten. If you set this for your logfiles, if an attacker gets access to the machine, they can't rewrite the logs to hide the breakin."

Complete Story

Related Stories: