From 2fa5e6b267f72ef370d962140c2ecad39d5ff994 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 13 Feb 2020 22:12:17 -0500 Subject: [PATCH] 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 --- provision/baseline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6