From ec536cd9a6e76f48e3e6b68fbc28c820c7a95084 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 2 Apr 2019 18:19:38 +0200 Subject: [PATCH] Added sudoers file for yum --- etc/sudoers.d/yum | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 etc/sudoers.d/yum diff --git a/etc/sudoers.d/yum b/etc/sudoers.d/yum new file mode 100644 index 0000000..2e91b31 --- /dev/null +++ b/etc/sudoers.d/yum @@ -0,0 +1,5 @@ +# Yum install/update without password for sysadmin or packager groups +Cmnd_Alias YUM_CMD = /usr/bin/yum update, /usr/bin/yum install * + +%packager ALL = NOPASSWD: YUM_CMD +%sysadmin ALL = NOPASSWD: YUM_CMD