[software development] V25要如何全程root,开发的时候每次sudo非常痛苦
Tofloor
poster avatar
9527木头人
deepin
2026-09-22 13:02
Author

有没有办法能直接root登录

Reply Favorite View the author
All Replies
avatar
LiuYongzhang
deepin
2026-09-22 13:18
#1

sudo -i

Reply View the author
avatar
𰻞𰻝面
deepin
2026-09-22 14:10
#2

危险警告!执行操作后将无密码确认!可能造成严重后果!

  1. sudo visudo -f /etc/sudoers.d/[随便起个文件名]
  2. 在编辑模式下输入 [你的用名] ALL=(ALL) NOPASSWD: ALL 然后按Esc键,输入:wq保存
  3. 重启系统即可享受无需输入密码的sudo了(谨慎使用)
  4. 想恢复原来的样子,删除步骤1中创建的文件,重启系统即可。
    录屏_dde-shell-desktop_20260922141133.gif
Reply View the author
avatar
chmod700
deepin
2026-09-22 14:26
#3
It has been deleted!
avatar
Feelup
deepin
2026-09-22 15:39
#4

要不,你考虑一下开启人脸识别?这样需要权限时都看你的脸自动通过了。😏

Reply View the author
avatar
zccrs
deepin
2026-09-22 16:24
#5

有需要的话可以把自己的密码设置空,让账户无密码,这样用sudo就可以不输入密码

Reply View the author
avatar
𰻞𰻝面
deepin
2026-09-22 17:17
#6
zccrs:

有需要的话可以把自己的密码设置空,让账户无密码,这样用sudo就可以不输入密码

无密码在图形交互时无法完成,比如安装、卸载应用时授权框无法确认

Reply View the author
avatar
忘记、过去
deepin
2026-09-24 09:47
#7

[经验分享] 登录/锁屏界面允许输入用户名登录

可以在登录界面输入用户名登录,但需要先 sudo passwd root 给 root 设置一个密码。


登录后,大概率图形界面各种组件显示不出来,或者显示非常慢......因为好多组件依赖 D-Bus 接口,在 root 用户下不一定调的通,需要等待超时

Reply View the author
avatar
暮风小猫
deepin
2026-09-25 17:48
#8
𰻞𰻝面:

危险警告!执行操作后将无密码确认!可能造成严重后果!

  1. sudo visudo -f /etc/sudoers.d/[随便起个文件名]
  2. 在编辑模式下输入 [你的用名] ALL=(ALL) NOPASSWD: ALL 然后按Esc键,输入:wq保存
  3. 重启系统即可享受无需输入密码的sudo了(谨慎使用)
  4. 想恢复原来的样子,删除步骤1中创建的文件,重启系统即可。
    录屏_dde-shell-desktop_20260922141133.gif

谢谢谢谢

Reply View the author