LinuxLinux安全配置手册安全配置手册综述本文档以典型安装的RedHatLinux为对象撰写而成,其他版本均基本类似,根据具体情况进行适当修改即可
文档中的操作需要以root用户登录至控制台进行,不推荐使用网络远程的方式进行补丁及配置修改等加固操作
部分操作需要重新启动服务器才会生效,注意某些数据库等应用需要先停止应用,然后才可以重新启动
加固之前首先应对系统中的重要文件及可能修改的文件进行备份,可参照使用以下脚本:forfilein/etc/inetd
conf/etc/hosts
equiv\/etc/ftpusers/etc/passwd/etc/shadow/etc/hosts
allow\/etc/hosts
deny/etc/proftpd
conf\/etc/rc
d/init
d/functions/etc/inittab\/etc/sysconfig/sendmail/etc/security/limits
conf\/etc/exports/etc/sysctl
conf/etc/syslog
conf\/etc/fstab/etc/security
console
perms/root/
rhosts\/root/
shosts/etc/shosts
equiv/etc/X11/xdm/Xservers\/etc/X11/xinit/xserverrc/etc/X11/gdm/gdm
conf\/etc/cron
allow/etc/cron
deny/etc/at
allow\/etc/at
deny/etc/crontab/etc/motd/etc/issue\/usr/share/config/kdm/kdmrc/etc/X11/gdm/gdm
conf\/etc/securetty/etc/security/access
conf/etc