---
title: "恢复Linux root用户密码"
author: "ynztpwl"
date: "2012-11-15T13:19:00Z"
tags: []
slug: "linux-root"
draft: false
lastmod: "2013-12-19T13:49:56Z"
id: 1991967
url: "https://ynztpwl.iteye.com/blog/1991967"
---

## 简介

恢复Linux root用户密码，一共8个步骤。

## 步骤/方法

1. 开机的时候按e
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/f29faa8f2d4349a2f01f36c1.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=1)
2. 再次按e
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/54baacfb060db06e4f4aeacd.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=2)
3. 选择第2项，还是按e
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/246cca2a492be9d7033bf6c9.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=3)
4. 空个格，输入1 ，（是1234的1）然后回车
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/a8ad94135a04bf9cf7039ed5.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=4)
5. 按b
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/808a27db5fda8f2ad0164ed1.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=5)
6. 这时在启动了，耐心等待
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/373bc4b457c7f33f8bd4b2dc.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=6)
7. 起来后是这样的，下面就该修改密码了
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/0862c354e7624f14d10906de.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=7)
8. 命令passwd 改root密码，输入2次，确认成功
   
   [![怎样恢复Linux root用户密码](http://hiphotos.baidu.com/exp/pic/item/62667cd0cc2c4cc3a0ec9cd9.jpg)](http://jingyan.baidu.com/album/c74d60004933630f6b595d70.html?picindex=8)