Linux / Unix - 如何在没有密码的情况下让一个用户使用`sudo`


5

如何在不输入密码的情况下设置sudo(或su -)用户?

Answers:


4

你通过sudoers文件控制sudo 。要编辑此文件,请运行sudo visudo

我没有测试过这个,但我认为以下内容将允许“cdrom”组中的所有用户运行“sudo k3b”而无需密码:

%cdrom    ALL = NOPASSWD: /usr/bin/k3b

资料来源:http//ubuntuforums.org/showthread.php?t = 19236

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.