Linux入门教程:如何重置CentOS 7的root密码
重置CentOS 7 root密码的方式和Centos 6完全不同。让我来展示一下到底如何操作。
1 - 在启动grub菜单,选择编辑选项启动

2 - 按键盘e键,来进入编辑界面

3 - 找到Linux 16的那一行,将ro改为rw init=/sysroot/bin/

4 - 现在按下 Control+x ,使用单用户模式启动

5 - 现在,可以使用下面的命令访问系统
chroot /sysroot
6 - 重置密码
passwd root
7 - 更新系统信息
touch /.autorelabel
8 - 退出chroot
exit
9 - 重启你的系统
reboot
相关推荐
  summerinsist    2020-08-21  
   87901735    2020-08-19  
   suosuo    2020-07-28  
   benico    2020-08-19  
   Rain    2020-08-15  
   RemixGdc    2020-08-15  
   Jaystrong    2020-08-02  
   KFLING    2020-08-01  
   zhangll00    2020-07-29  
   elitechen    2020-07-28  
   benico    2020-07-28  
   xiyoukeke    2020-07-28  
   小惠    2020-07-27  
   此处省略三千字    2020-07-20  
   泥淖    2020-07-19  
   安得情怀似旧时    2020-07-06  
   sunzhihaofuture    2020-07-04