linux - centos6.5虚拟机root密码忘记,怎么重置密码?
PHP中文网
PHP中文网 2017-04-17 14:40:12
0
4
805

通过xshell连接centos6.5虚拟机,默认的账号是vagrant。但我想切换到root账号,提示密码错误,但我一直不知道密码是多少啊,如下图所示:

希望能得到大家的解答,谢谢!

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(4)
黄舟

Search for "centos forgot root password"
http://blog.csdn.net/linruonan90/article/details/26883699

小葫芦

Restart the system and enter the system in single-user mode to change the root password. You can first try to see if you can switch to root through the command sudo su. If you can, you do not need a single-user

Ty80

If your current user can sudo, reset the password like sudo passwd root

大家讲道理

You can use single-user mode to change the administrator password

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template