LINUX安全管理
19714
- hkloc802011-10-25注册会员31153
一、 ILO的安全设置
LILO是Linux Loader的缩写,它是LINUX的启动模块。
我们可通过修改「/etc/lilo.conf」文件中的内容来对它进行配置。
在文件中加上,如下两个参数:restricted,password。这两个参数可以使您的系统在启动lilo时就要求密码验证。
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=00 #把这行该为00,这样系统启动时将不在等待,而直接启动LINUX
message=/boot/message
linear
default=linux
restricted #加入这行
password= #加入这行并设置自己的密码
image=/boot/vmlinuz-2.4.2-2
label=linux
root=/dev/hda6
read-only 因为"/etc/lilo.conf"文件中包含明文密码,所以要把它设置为root权限读取。
# chmod 0600 /etc/lilo.conf 还要使用「chattr」命令使"/etc/lilo.conf"文件变为不可改变。
# chattr +i /etc/lilo.conf 这样可以对「/etc/lilo.conf」文件起到很好的保护作用。(对其它文件的保护也可以采用此方法) 最后要使lilo.conf文件生效要用/sbin/lilo -v 更新一下系统。