chattr +i /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/inittab
锁定系统关键文件
chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/inittab 解锁
lsattr /etc/passwd 查看文件是否加锁
chattr +i /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/inittab
锁定系统关键文件
chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/inittab 解锁
lsattr /etc/passwd 查看文件是否加锁