Home  >  Q&A  >  body text

linux - centos6.5虚拟机root密码忘记,怎么重置密码?

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

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

PHP中文网PHP中文网2714 days ago763

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-17 14:42:12

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

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 14:42:12

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:42:12

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:42:12

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

    reply
    0
  • Cancelreply