使用sudo提权时不需要输入密码
Tofloor
poster avatar
dagu
deepin
2015-10-08 18:34
Author
本帖最后由 dagu 于 2015-10-8 10:40 编辑

打开需要编辑的文件
  1. sudo vi /etc/sudoers
Copy the Code
注意此文件末尾添加一行
  1. your_username ALL = NOPASSWD: ALL
Copy the Code
your_username为你的用户名

参考连接:https://help.ubuntu.com/community/Sudoers#Shutting_Down_From_The_Console_Without_A_Password
Reply Favorite View the author
All Replies
rexlevin
deepin
2015-10-08 18:40
#1
标题不准确。
链接里面只是说shutdown your computer时不需要输入密码,从配置来看,还有halt和reboot。
如果配置乘干啥都不需要提权反而不好了。
Reply View the author
dagu
deepin
2015-10-08 18:42
#2
https://bbs.deepin.org/post/32710
标题不准确。
链接里面只是说shutdown your computer时不需要输入密码,从配置来看,还有halt和reboot。
如 ...

只是个人系统使用方便一些,不是服务器
Reply View the author