开机在引导模式按键盘上的“e”键,进入内核编辑模式
redhat7重置root密码
找到linux16参数这一行,在末尾添加 rd.break 参数,然后按Ctrl + X 键运行修改过的内核
redhat7重置root密码
稍等一会会进入紧急救援模式
redhat7重置root密码
依次输入以下命令,重启后就可以使用新密码登录了
mount -o remount,rw /sysroot
chroot /sysroot
passwd
输入两遍新密码
touch /.autorelabel
exit
reboot
redhat7重置root密码

相关文章:

  • 2022-01-15
  • 2021-07-12
  • 2022-12-23
  • 2021-10-21
  • 2021-10-22
  • 2021-05-19
猜你喜欢
  • 2021-11-21
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-09-29
相关资源
相似解决方案