From: Thanh Ha Date: Fri, 14 Feb 2020 03:12:17 +0000 (-0500) Subject: Allow the jenkins user to sudo as any user X-Git-Tag: v0.4.4~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F63125%2F1;p=releng%2Fcommon-packer.git Allow the jenkins user to sudo as any user Previously the Jenkins user could only sudo and run commands as root. This change allows the Jenkins user to `sudo -u another_user` without providing a password. This is useful for test suites that need to perform commands as different user accounts and not just root. Change-Id: Ib7864e8b9370ae7f1a2a8bec82cf609e7dcccead Signed-off-by: Thanh Ha --- diff --git a/provision/baseline.yaml b/provision/baseline.yaml index 4108710..61673a5 100644 --- a/provision/baseline.yaml +++ b/provision/baseline.yaml @@ -17,7 +17,7 @@ dest: /etc/sudoers.d/89-jenkins-user-defaults content: | Defaults:jenkins !requiretty - jenkins ALL = NOPASSWD: ALL + jenkins ALL=(ALL) NOPASSWD:ALL validate: /usr/sbin/visudo -cf %s become: yes