在忘记root用户密码是用于重置root用户密码:

  1、开机按e。

  2、在linux16开头的一行的末尾添加rd.break,按ctrl+x。

  3、依次执行命令:

    mount -o remount,rw /sysroot

    chroot /sysroot

    password

    输入新密码

    再次输入

    touch /.autorelabel

    exit

    reboot

    

相关文章:

  • 2021-05-29
  • 2022-12-23
  • 2021-05-21
  • 2021-11-02
  • 2021-05-13
  • 2021-05-10
  • 2021-10-13
  • 2022-02-15
猜你喜欢
  • 2021-05-27
  • 2021-08-03
  • 2021-06-01
  • 2022-01-22
  • 2021-06-21
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案