给我们的Ubuntu启动菜单加一个密码,使系统更加安全。使用sudo gedit /boot/gurb/menu.lst编辑menu文件 找到
## ## End Default Options ## title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,6)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=7854-121A loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
password 123456 (这是设置密码,我这设置的是123456)
root (hd0,6)/ubuntu/disks
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=7854-121A loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.24-19-generic 保存,重新启动就可以看到效果了,我这是给恢复模式加密,给其他的加密方法也如此。可以用grub-md5-crypt先把密码用MD5加密: 代码:
$ grub-md5-crypt
Password:
Retype password:
$1$Kmpva$9iLHPwiGdgi.26dOjUPeR/再在menu.lst里面的password后加一个--md5, 跟密码, 就可以了。代码:
password --md5 $1$Kmpva$9iLHPwiGdgi.26dOjUPeR/
Ubuntu 9.10 下宋体英文字体发虚的问题深入讲述Linux Ext3文件系统相关资讯 Ubuntu知识
- Ubuntu 有这功能吗?-回答4个新用 (10/14/2014 16:54:49)
- Ubuntu小知识总结 (07/08/2013 17:02:10)
- 万圣节Halloween与Ubuntu (10/31/2012 07:59:01)
| - Ubuntu系统诞生10周年:让Linux更 (10/14/2014 16:53:00)
- Ubuntu 官方发布 Ubuntu 应用程序 (02/15/2013 21:49:58)
- Ubuntu内置捐款选项:为掌握用户需 (10/11/2012 13:57:23)
|
本文评论 查看全部评论 (0)