ubuntu密码恢复

1、重新启动,按ESC键进入Boot Menu,选择recovery mode(一般是第二个选项)。

2、在#号提示符下用cat /etc/shadow,看看用户名。

3、输入passwd "用户名"(引号要有的哦)。

4、输入新的密码.

5、重新启动,用新密码登录。

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: