ubuntu忘记密码或者密码修改坏了怎么解决恢复
1,开机当出现Grub 界面时,按“Esc”进入grub:
ubunt 8.04.1, kernel 2.6.24-19-generic
ubunt 8.04.1, kernel 2.6.24-19-generic (recovery mode)
ubunt 8.04.1, MeMtest86+
2,选择第二行"ubunt 8.04.1, kernel 2.6.24-19-generic (recovery mode)",按“Enter”进入Recovery Menu:
resume  resume normal boot
dpkg    repair broken packages
root    drop to root shell prompt
xfix    try to fix x server
3,选择"root    drop to root shell prompt",按“Enter”
接着就提示:
root@QA-desktop:~#
于是可以使用passwd生成新密码了.
root@QA-desktop:~# passwd root
Enter new password:
Retype new password:
passwd: password updated successfully
root@QA-desktop:~#
root的初始密码然后reboot就生效了。
下面是图示:
1.启动ubuntu的时候,长按shift键,进入GRUB界面
2.选择recovery mode
3选择如下图所示
4 然后使用  passwd root来修给密码。