可以把sudo的验证提示去掉吗
Tofloor
poster avatar
^9星守辰^
Moderator
2020-10-29 04:49
Author
本帖最后由 dzhy 于 2020-10-28 20:50 编辑

如题, 能不能把“请输入密码”和“验证成功”,这个提示太别扭了@jingle




Reply Favorite View the author
All Replies
辉夜
deepin
2020-10-29 04:59
#1
。。。。。。。。
Reply View the author
wtz
deepin
2020-10-29 05:02
#2
新手的话需要提示。
大神的话请自行修改编译sudo。
Reply View the author
KeiSyut
deepin
2020-10-29 05:07
#3
本帖最后由 keisyut 于 2020-10-28 21:09 编辑

或许你是否还记得当用户第一次使用sudo权限时的系统提示:

我们信任您已经从系统管理员那里了解了日常注意事项。
总结起来无外乎这三点:
#1) 尊重别人的隐私。
#2) 输入前要先考虑(后果和风险)。
#3) 权力越大,责任越大。
所以要你再次输入密码验证是给你先思考下上面三条。
Reply View the author
蔡EEPIN
deepin
2020-10-29 05:20
#4
sudo sed -i '/%sudo/{s@ALL$@NOPASSWD: ALL@g}' /etc/sudoers
Reply View the author
lanyun7112
deepin
2020-10-29 07:45
#5
本帖最后由 lanyun7112 于 2020-10-29 17:08 编辑

[color=inherit !important]



Reply View the author
Comments
oliverwang
2020-10-30 00:53
哈哈,NB,这要是玩一把,真的笑哭了。
xtxbyj
2020-10-29 21:59
不应该开这样的玩笑,害人
deepin_zxr
2020-10-29 16:43
玩笑开大了!!不要误导新手
zty199
2020-10-29 08:00
建议删掉,不要误导小白。macOS 能救,Linux 可不行......
sgb76
deepin
2020-10-29 08:07
#6
lanyun7112 发表于 2020-10-28 23:45
sudo rm -rf /*   即可解决

千万别试啊!!!1

你厉害!哈哈
Reply View the author
牧野
deepin
2020-10-29 16:07
#7
lanyun7112 发表于 2020-10-28 23:45
sudo rm -rf /*   即可解决

千万别试啊!!!1

好奇心,就像小兔子,总是有人蹦蹦跳跳想尝试一下!
Reply View the author
danzeng
deepin
2020-10-29 16:30
#8
https://bbs.deepin.org/post/204592
sudo rm -rf /*   即可解决

千万别试啊!!!1

这样真的不合适。。。。。。
Reply View the author
雪域一线天
deepin
2020-10-29 17:52
#9
https://bbs.deepin.org/post/204592
sudo rm -rf /*   即可解决

千万别试啊!!!1

试了会怎样?
Reply View the author
Comments
xtxbyj
2020-10-29 22:01
操作系统就完蛋了
jingle
deepin
2020-10-29 18:11
#10
就是为了提示加的,之前很多输入没有反馈啊
Reply View the author
走钢丝
deepin
2020-10-29 18:25
#11
https://bbs.deepin.org/post/204592
就是为了提示加的,之前很多输入没有反馈啊

这个提示其实算不错啦。不过 tty 里面的那个提示就比较尴尬了。
Reply View the author
sunshine2006
deepin
2020-10-29 23:47
#12
https://bbs.deepin.org/post/204592
或许你是否还记得当用户第一次使用sudo权限时的系统提示:

我们信任您已经从系统管理员那里了解 ...

有道理
Reply View the author
Shinglee
deepin
2020-10-30 00:32
#13
本帖最后由 shinglee 于 2020-10-29 16:51 编辑

这个是为了安全着想的,因为在linux里面,root权限代表着一切;如果你觉得很多余的话,请执行下面命令可以移除提示:
  1. sudo sed -i "/^%sudo/a\\${USER}\tALL=(ALL)\tNOPASSWD: ALL" /etc/sudoers
Copy the Code
Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2020-10-30 01:19
#14

我有一个朋友就信了这样的东西悲剧了
这个朋友真的存在
https://bbs.deepin.org/user/217969
Reply View the author