centos7&redhat7修改密码

  1. e
  2. ro后加入 空格+rd.break   
  3. crtl+x   
  4. mount -o remount,rw /sysroot   
  5. chroot /sysroot   
  6. passwd root
  7. touch /.autorelabel   
  8. exit
  9. exit

修改成功

原文地址:https://www.cnblogs.com/guoxiaobao/p/9479343.html