首页 > 其他 > 详细

grub加密

时间:2015-12-26 23:47:44      阅读:467      评论:0      收藏:0      [点我收藏+]

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

则表示使用明文加密。


本文出自 “星星之火” 博客,请务必保留此出处http://154883753.blog.51cto.com/470223/1728591

grub加密

原文:http://154883753.blog.51cto.com/470223/1728591

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!