chattr +i file #file所有人都不可以对文件做增删改,root都不允许。
+,-,=号分别表示增加、取消、赋予什么属性。
其他用法如下:
The letters `acdeijstuACDST' select the new attributes for the files:
append only (a), compressed (c), no dump (d), extent format (e),
immutable (i), data journalling (j), secure deletion (s), no tail-merging
(t), undeletable (u), no atime updates (A), no copy on write (C), syn‐
chronous directory updates (D), synchronous updates (S), and top of
directory hierarchy (T).
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29038506/viewspace-766634/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29038506/viewspace-766634/