Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Linux 下 grub 密码的设置

一、GRUB 明口令加密;比如我没有设置密码之前/etc/grub是如下的样子:default=1
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2061.nptl)
root (hd0,7)
kernel /boot/vmlinuz-2.4.22-1.2061.nptl ro root=LABEL=/
initrd /boot/initrd-2.4.22-1.2061.nptl.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1加入口令以后就是下面这样的:default=1
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
password=123456
title Fedora Core (2.4.22-1.2061.nptl)
lock
root (hd0,7)
kernel /boot/vmlinuz-2.4.22-1.2061.nptl ro root=LABEL=/
initrd /boot/initrd-2.4.22-1.2061.nptl.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1从上面的可以看出,GRUB的密码是123456,lock的意思就是把RedHat Fedora锁住了。如果启动时会提示错误。这时就应该按P键,然后输入密码就行了。我设置的是123456,当然应该输入123456了,输入别的密码肯定不能通过,这样是不是做到保密.
  • 1
  • 2
  • 下一页
【内容导航】
第1页:GRUB 明口令加密第2页:GRUB 的md5加密方法
盘点Ubuntu各不同版本Fedora8添加yum升级源相关资讯      Grub  grub密码 
  • Ubuntu下Grub配置详解  (今 14:57)
  • Linux系统教程:设置GRUB菜单密码  (12/15/2015 21:30:02)
  • Linux操作系统启动管理器-GRUB  (05/09/2015 12:06:59)
  • GRUB官方文档翻译-v1.01 PDF  (04月09日)
  • 修复Linux中的“提供类似行编辑的  (07/29/2015 13:18:34)
  • Ubuntu 通过 Live CD 更新Grub恢复  (04/19/2015 19:06:43)
本文评论 查看全部评论 (0)
表情: 姓名: 字数