diff --git a/etc/sudoers.d/dnf b/etc/sudoers.d/dnf new file mode 100644 index 0000000..611092b --- /dev/null +++ b/etc/sudoers.d/dnf @@ -0,0 +1,5 @@ +# DNF install/update without password for sysadmin or packager groups +Cmnd_Alias DNF_CMD = /usr/bin/dnf update, /usr/bin/dnf install * + +%packager ALL = NOPASSWD: DNF_CMD +%sysadmin ALL = NOPASSWD: DNF_CMD diff --git a/etc/sudoers.d/yum b/etc/sudoers.d/yum deleted file mode 100644 index 2e91b31..0000000 --- a/etc/sudoers.d/yum +++ /dev/null @@ -1,5 +0,0 @@ -# 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