使用普通用户登录后在终端中执行sudo命令时提示以下错误:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
执行 vi /etc/sudoers
命令对配置文件进行编辑。在文件中先找到,加红为需要执行sudo的用户
## Same thing without a password
jenkins ALL=(ALL) NOPASSWD: ALL
然后再使用就不需要输入密码了。