系统进入recovery mode模式有问题,求帮助
Tofloor
poster avatar
widy28
deepin
2017-07-07 18:42
Author
修改 /etc/sudoers文件 格式错误,造成用不了sudo命令,
重启进入recovery mode模式,直接选择root模式 是 只读模式,然后选择grub模式,变成 read/write模式,但是此后就无法进入root模式,而且不断闪屏。。按 回车键 没反应,求帮忙。
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-07-07 19:01
#1
tty还能进入吗? 这个是我的配置 未改的  你覆盖下 为何要改这权限
  1. #
  2. # This file MUST be edited with the 'visudo' command as root.
  3. #
  4. # Please consider adding local content in /etc/sudoers.d/ instead of
  5. # directly modifying this file.
  6. #
  7. # See the man page for details on how to write a sudoers file.
  8. #
  9. Defaults        env_reset
  10. Defaults        mail_badpass
  11. Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

  12. # Host alias specification

  13. # User alias specification

  14. # Cmnd alias specification

  15. # User privilege specification
  16. root        ALL=(ALL:ALL) ALL

  17. # Allow members of group sudo to execute any command
  18. %sudo        ALL=(ALL:ALL) ALL

  19. # See sudoers(5) for more information on "#include" directives:

  20. #includedir /etc/sudoers.d
Copy the Code
Reply View the author
avatar
widy28
deepin
2017-07-07 21:18
#2
https://bbs.deepin.org/post/142149
tty还能进入吗? 这个是我的配置 未改的  你覆盖下 为何要改这权限

我按照这个改好了,我想sudo 免密码,所以改的这个。。
Q:深度操作系统忘记密码后,该如何修改密码?
A:操作步骤如下:
1、首先开机选择“Advanced options for *****”这一行按回车。
2、然后选中最后是“(recovery mode)”这一行按“E”进入编辑页面。
3、将“ro recovery ”改为“rw single init=/bin/bash”。
4、按ctrl+X或者F10启动,进入root shell。
5、执行passwd+用户名。
6、修改完成后按ctrl + alt + del重启电脑。
Reply View the author