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.结束
posted @ 2016-07-17 23:43  轮子手  阅读(133)  评论(0编辑  收藏  举报