#vi /etc/lilo.conf.anaconda
rompt
timeout=20
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
lba32
image=/boot/vmlinuz-2.6.9-5.34DT
label=linux
initrd=/boot/initrd-2.6.9-5.34DT.img
read-only
append="root=LABEL=/"
password=1234567 (此处为添加部分,密码为明文显示的)
二,grub加密,避免在选择系统时使用“e”来破解
#vi /etc/grub.conf
timeout = 3
splashimage = (hd0,0)/grub/splash.xpm.gz
fontfile = (hd0,0)/grub/fonts
default = 0
password=1234567 (此处请您添加,密码为明文显示--建议使用较为简单的字母+数字组合--不要与ROOT密码相同)
title Red Flag Desktop (2.6.9-5.34DT)
lock (此处请您添加)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.34DT ro root=LABEL=/ vga=785 splash=silent resume2=swap:/dev/hda2
initrd /initrd-2.6.9-5.34DT.img
title Red Flag Desktop-2.6.9-5.34DT (Safe Mode)
lock (此处请您添加)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.34DT ro root=LABEL=/ 4
initrd /initrd-2.6.9-5.34DT.img
title Red Flag Desktop-2.6.9-5.34DT (Console Mode)
lock (此处请您添加)
root (hd0,0)
kernel /vmlinuz-2.6.9-5.34DT ro root=LABEL=/ 3
initrd /initrd-2.6.9-5.34DT.img
三,忘记ROOT密码
输入grub密码后,按e,选择kernel ..,按e,出现
建议:ROOT密码使用字母+数字+特殊符的组合,并定期更改密码


Assurance 于 2007-03-07 19:55:46发表:
一直都用root办公,不做没把握的修改就不会有事