1、开机狂按shift键,进入grub页面,用上下键移到第二行的恢复模式,按e(注意不是回车) 即Ubuntu,With Linux 3.2.0-23-generic(recovery mode) 


2、把ro recovery nomodeset 改成rw single init=/bin/bash 然后按ctrl+x 或者F10 就可以进入 单用户模式


ubuntu密码忘了、sudoers文件坏了等解决办法


然后就是root权限的shell了,修复之前愚蠢的错误吧,包括重设密码什么的都可以。

转载于:https://my.oschina.net/cxz001/blog/297404

相关文章:

  • 2021-05-19
  • 2021-12-04
  • 2022-12-23
  • 2021-11-22
  • 2021-08-18
  • 2021-04-15
猜你喜欢
  • 2021-11-13
  • 2021-12-15
  • 2021-10-16
  • 2021-10-09
  • 2021-09-26
  • 2021-10-04
  • 2021-12-09
相关资源
相似解决方案