Ubuntu关闭运行sudo命令需输入密码

1
2
3
4
5
6
vim /etc/sudoers //编辑

用户名 ALL=(ALL) NOPASSWD: NOPASSWD: ALL //添加一行

:wq! //保存修改

再次使用sudo命令无需输入密码即可运行

作者

yunyunyun

发布于

2022-04-19

更新于

2022-04-19

许可协议

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.