Find root Password


Find root Password

  1. 重启系统,并按住 Shift 键,直到出现如下界面

    image-20220526110604328

    选择 Advanced options for Ubuntu

  2. 进入下图界面后,选择 recovery mode,并根据下面提示在键盘上键入 e 进入编辑模式

    image-20220526110620633

  3. 在编辑模式中找到如下图所示位置

    image-20220526110633506

    image-20220526110700757

    修改 ro recovery nomodesetquiet splash rw init=/bin/bash,并通过 Ctrl + xF10 启动

  4. 等到启动完成后,通过 passwd 命令修改密码即可。修改完成后重启服务器即可使用新密码登录

    image-20220526110715860


Author: Liang Junyi
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Liang Junyi !
  TOC