grub加密
2015-12-26 16:53
591 查看
grub加密有明文加密码和密文加密
命令:grub-md5-crypt
[root@lnmp01 rc.d]# grub-md5-crypt
Password:
Retype password:
$1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.
密码加密后密文:$1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.
配置/boot/grub/grub.conf
[root@lnmp01 rc.d]# vim /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
#在此处对grub加密
password --md5 $1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.
title CentOS 6 (2.6.32-504.el6.x86_64)
root (hd0,0)
如果password --md5 $1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.替换成:password 123456
则表示使用明文加密。
命令:grub-md5-crypt
[root@lnmp01 rc.d]# grub-md5-crypt
Password:
Retype password:
$1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.
密码加密后密文:$1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.
配置/boot/grub/grub.conf
[root@lnmp01 rc.d]# vim /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
#在此处对grub加密
password --md5 $1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.
title CentOS 6 (2.6.32-504.el6.x86_64)
root (hd0,0)
如果password --md5 $1$p9Y9a$Id5hMpbsHLNZFs0gPbRRI.替换成:password 123456
则表示使用明文加密。
相关文章推荐
- Ubuntu下更改Grub的背景图片
- 开机出现:grub rescue的修复方法
- 用ASP编写的加密和解密类
- VBS脚本加密/解密VBS脚本(简易免杀版1.1)
- BAT加密工具 EncryBat 非编译型bat批处理加密方案与代码
- C#对称加密(AES加密)每次生成的结果都不同的实现思路和代码实例
- SQLServer 2008中的代码安全(一) 存储过程加密与安全上下文
- 实例讲解SQL Server加密功能
- C#实现对文件进行加密解密的方法
- C#实现数据包加密与解密实例详解
- C#最简单的字符串加密解密方法
- C#加密app.config中连接字符串的方法
- C#使用伪随机数实现加密用户密码的方法
- asp MD5加密方式使用建议
- C#对称加密与非对称加密实例
- 浅谈C#中Md5和Sha1两种加密方式
- 基于C#对用户密码使用MD5加密与解密
- vbs shellcode转换escape加密
- PHP加密解密字符串汇总
- PHP加密解密实例分析