sudoers.d/dnf: rename and update obsolete yum file

This commit is contained in:
Silvan Calarco 2023-01-24 11:24:42 +01:00
parent 0581cc31b0
commit a331089bff
2 changed files with 5 additions and 5 deletions

5
etc/sudoers.d/dnf Normal file
View File

@ -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

View File

@ -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