Ubuntu 12.04 忘记登录密码,或者登录成功后闪退

1. Recover Login Password of Ubuntu 12.04

After my first installation of Ubuntu 12.04, I forgot my login password and need to recover it.

To recover it you need to follow these steps:

1. Boot your computer.

2. When you get the grub menu, select option with recover as shown in figure.

 

Ubuntu 12.04 : Grub Menu

 

3. This will take you to recovery menu . In recovery menu select option "drop to root shell " as shown in figure.

Ubuntu 12.04 : Recovery Menu


4. A shell prompt will be displayed at the bottom of the screen with root as username. To change the password of particular user say naveen
type:
       passwd naveen

 

5. The above command will ask you to enter your new password and retype password. Type your new password.

6. You might get "Authentication Manipulation error". If you get this error then you need to type :
     mount -rw -o remount /
     And again follow step 4 and 5.

 

来源: http://naveenubuntu.blogspot.com/2012/05/recover-login-password-of-ubuntu-1204.html

 

2. Can't log in although password is correct

try removing the Xauhority file and reboot.

for me that was  Ctrl+Alt+F1 (在登录界面)

rm ~/.Xauthority
 

reboot

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值