Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Linux 忘记root登录密码解决方法

$
0
0
linux 忘记root登录密码解决方法

1小时前来源:cnblogs

很多朋友经常会忘记Linux系统的root密码,linux系统忘记root密码的情况该怎么办呢?重新安装系统吗?当然不用!进入单用户模式更改一下root密码即可。

步骤如下:

重启linux系统
php?url=0F9b3MQOnw" alt="Linux 忘记root登录密码解决方法" />

3 秒之内要按一下回车,出现如下界面


Linux 忘记root登录密码解决方法

然后输入e


Linux 忘记root登录密码解决方法

在 第二行最后边输入 single,有一个空格。具体方法为按向下尖头移动到第二行,按"e"进入编辑模式


Linux 忘记root登录密码解决方法

在后边加上single 回车

最后按"b"启动,启动后就进入了单用户模式了


Linux 忘记root登录密码解决方法

此时已经进入到单用户模式了,你可以更改root密码了。更密码的命令为 passwd

这样就可以成功改密码了! 希望能帮助到你!


Viewing all articles
Browse latest Browse all 11063

Trending Articles