centos7.2密码在单用户下面的修改

centos7.2在但用户模式下面的修改

  • 1.开机启动
  • 2.grub模式按E健
  • 3.Linux16行的"ro"修改为 "rw init=/sysroot/bin/sh"
  • 4.chroot /sysroot/
  • 5.passwd root
  • 6.touch /.autorelabel
  • 7.exit
  • 8.reboot
  • 7.结束
原文地址:https://www.cnblogs.com/luomgf/p/5679774.html