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,输入密码后才能进入系统安装
    蓝色加密部分给系统登录带来的登录密码验证要求(强烈不建议如此设置,给系统远程重启直接阻拦,后续麻烦你懂得!)
  • 相关阅读:
    nignx 配置https
    开发插件
    pdf 转word 网站
    github 镜像站点
    apk 托管
    系统引导原理以及过程
    网络维护-路由与路由的链接
    linux 常用命令
    Linux netsat 命令
    Oracle登录 ORA-01033: ORACLE正在初始化或关闭的解决方法
  • 原文地址:https://www.cnblogs.com/forilen/p/4239898.html
Copyright © 2011-2022 走看看