Linux系统运维技巧
我们有这样的需求:Linux系统下一个文件不允许别人修改、删除或者只允许添加,我们就可以使用chattr命令。[root@serv01 test]# cat note.txt 1.不许迟到2.不许早退3.不许抽烟[root@serv01 test]# chattr +i note.txt#root用户都不能编辑[root@serv01 test]# vim note.txt [root@serv01 test]# cat note.txt1.不许迟到2.不...