From 514cdf952dfa1921418e400f308a6944c423eb1c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:11:18 +0100 Subject: [PATCH] update /etc/sudoers file: give sysadmin execute permission from any dir and no password for systemctl, journalctl, dnf [release 1.8.29-2mamba;Mon Nov 04 2019] --- sudo-sudoers.conf | 6 +++--- sudo.spec | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/sudo-sudoers.conf b/sudo-sudoers.conf index eb62e4b..7948877 100644 --- a/sudo-sudoers.conf +++ b/sudo-sudoers.conf @@ -10,9 +10,9 @@ # User alias specification # Cmnd alias specification -Cmnd_Alias DISTRO_CMD = /usr/bin/rpm, /usr/bin/smart, /sbin/ldconfig +Cmnd_Alias DISTRO_CMD = /usr/bin/rpm, /usr/bin/dnf, /usr/bin/smart, /sbin/ldconfig # Cmnd_Alias EXTRA_CMD = -Cmnd_Alias SYSADM_CMD = /sbin/service, /sbin/chkconfig, /usr/sbin/ufw +Cmnd_Alias SYSADM_CMD = /bin/systemctl, /bin/journalctl, /usr/sbin/ufw Cmnd_Alias SYSADM_CMD_PASSWD = /sbin/*, /usr/sbin/*, /bin/*, /usr/bin/*, /opt/kde/bin/*, /opt/kde3/bin/* # Defaults specification @@ -26,7 +26,7 @@ root ALL=(ALL) ALL # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom # %users localhost=/sbin/shutdown -h now -%sysadmin ALL = PASSWD: SYSADM_CMD_PASSWD +%sysadmin ALL = PASSWD: ALL %packager ALL = NOPASSWD: DISTRO_CMD %sysadmin ALL = NOPASSWD: DISTRO_CMD %sysadmin ALL = NOPASSWD: SYSADM_CMD diff --git a/sudo.spec b/sudo.spec index e57b65c..5b46445 100644 --- a/sudo.spec +++ b/sudo.spec @@ -4,8 +4,8 @@ %define with_exempt 0 Name: sudo -Version: 1.8.28 -Release: 1mamba +Version: 1.8.29 +Release: 2mamba Summary: Allows restricted root access for specified users Group: System/Tools Vendor: openmamba @@ -166,6 +166,12 @@ exit 0 #%doc ChangeLog README README.LDAP %changelog +* Mon Nov 04 2019 Silvan Calarco 1.8.29-2mamba +- update /etc/sudoers file: give sysadmin execute permission from any dir and no password for systemctl, journalctl, dnf + +* Wed Oct 30 2019 Automatic Build System 1.8.29-1mamba +- automatic version update by autodist + * Tue Oct 15 2019 Automatic Build System 1.8.28-1mamba - automatic version update by autodist