系統環境: RedHat 4.x Server & Workstation
修改 modprobe.conf:
[root@rh4 ~]# vi /etc/modprobe.conf
最下方加上這兩行
# added by alang, this line would disable the USB drive. install usb-storage :
重啟系統後,可以驗證設定是否生效
建立密碼:
[root@rh4 ~]# /sbin/grub-md5-crypt Password: Retype password: $1$Nk8AX$zsPr79zeiwd0zwF94DND60
修改 grub.conf:
[root@rh4 ~]# vi /boot/grub/grub.conf
增加 password 那兩行,填入密碼的加密字串。
default=0 timeout=5 # Password Protecting GRUB password --md5 $1$Nk8AX$zsPr79zeiwd0zwF94DND60 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu