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:~# 然后reboot就生效了。
(二)Debian linux 系统密码破解
1.在grub选项菜单'Debian GNU/Linux,...(recovery mode)',按e进入编辑模式
2.编辑kernel那行最后面的 ro single 改成 rw single init=/bin/bash,按b执行重启
3.进入后执行下列命令
root@(none)#mount -a
root@(none)#passwd root
root@(none)#reboot