first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
28
shell/safe/12-chattr.sh
Normal file
28
shell/safe/12-chattr.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
#/bin/bash
|
||||
|
||||
# 锁定文件
|
||||
chattr +i /etc/passwd
|
||||
chattr +i /etc/group
|
||||
chattr +i /etc/sudoers
|
||||
chattr +i /etc/profile
|
||||
chattr +i /etc/bashrc
|
||||
chattr +i /etc/ssh/sshd_config
|
||||
chattr +i /etc/init.d/
|
||||
chattr +i /etc/rc.d/
|
||||
chattr +i /etc/crontab
|
||||
chattr +i /etc/cron.d/
|
||||
chattr +i /etc/hosts.allow
|
||||
chattr +i /etc/hosts.deny
|
||||
|
||||
chattr +i /usr/bin
|
||||
chattr +i /usr/sbin
|
||||
chattr +i /usr/local/sbin
|
||||
chattr +i /usr/local/bin
|
||||
chattr +i /usr/libexec
|
||||
|
||||
chattr +i /sbin/
|
||||
chattr +i /bin/
|
||||
|
||||
chattr +i /etc/yum.repos.d/
|
||||
|
||||
chattr +i /var/spool/cron/
|
Loading…
Add table
Add a link
Reference in a new issue