如何重置CentOS 7的Root密码?设置CentOS 7的Root密码的方法与步骤

重置Centos 7 Root密码的方式和Centos 6完全不同。让我来展示一下到底如何操作。

1 - 在启动grub菜单,选择编辑选项启动

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

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

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

5 - 现在,可以使用下面的命令访问系统

chroot /sysroot

6 - 重置密码

passwd root

7 - 更新系统信息

touch /.autorelabel

8 - 退出chroot

exit

9 - 重启你的系统

reboot

通过以上步骤就可以重置CentOS 7的Root密码了,谢谢阅读,希望能帮到大家,请继续关注,我们会努力分享更多优秀的文章。



扩展阅读:磁盘centos 7安装教程详细 ... centos7永久修改时间 ... centos7重置root密码 ... centos 7进入维护模式 ... linux修改root密码指令 ... centos6.5重置root密码 ... centos7忘了root密码 ... 怎么把centos 设置成中文 ... centos改密码 ...

本站交流只代表网友个人观点,与本站立场无关
欢迎反馈与建议,请联系电邮
2024© 车视网