zoukankan      html  css  js  c++  java
  • linux grub启动密码验证设置

    1、认识启动配置选项

    [root@server5 ~]# cat /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-version.img
    #boot=/dev/sda
    default=0
    timeout=5
    password --md5 $1$pFddV1$3X/XnIzEySuSF7fL9BUUj/
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title Red Hat Enterprise Linux Server (2.6.18-308.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-308.el5 ro root=LABEL=/ rhgb quiet
            initrd /initrd-2.6.18-308.el5.img
     
    title Red Hat Enterprise Linux Server (2.6.18-308.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-308.el5 ro root=LABEL=/ rhgb quiet
            initrd /initrd-2.6.18-308.el5.img
            password --md5 $1$pFddV1$3X/XnIzEySuSF7fL9BUUj/
     
    在启动项添加password,后面加上md5 加密的值(如上红色标识),红色部分输入方法:esc+: --> grub-md5-crypt --> 盲敲第一次密码(如:redhat)  --> 盲敲第二次密码(如:redhat),将不必要的删除,保存。
    蓝色部分给多个系统登录时,密码验证登录。
     
    按p,输入密码后才能进入系统安装
    蓝色加密部分给系统登录带来的登录密码验证要求(强烈不建议如此设置,给系统远程重启直接阻拦,后续麻烦你懂得!)
  • 相关阅读:
    C#计算代码的执行耗时
    c#值类型和引用类型
    C#类、接口、虚方法和抽象方法
    15,了解如何在闭包里使用外围作用域中的变量
    函数闭包,golbal,nonlocal
    init())函数和main()函数
    函数的命名空间
    函数的默认参数是可变不可变引起的奇怪返回值
    遍历目录
    super顺序
  • 原文地址:https://www.cnblogs.com/forilen/p/4239898.html
Copyright © 2011-2022 走看看