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]

This commit is contained in:
Silvan Calarco 2024-01-05 18:11:18 +01:00
parent 4a2853a826
commit 514cdf952d
2 changed files with 11 additions and 5 deletions

View File

@ -10,9 +10,9 @@
# User alias specification # User alias specification
# Cmnd 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 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/* Cmnd_Alias SYSADM_CMD_PASSWD = /sbin/*, /usr/sbin/*, /bin/*, /usr/bin/*, /opt/kde/bin/*, /opt/kde3/bin/*
# Defaults specification # Defaults specification
@ -26,7 +26,7 @@ root ALL=(ALL) ALL
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now # %users localhost=/sbin/shutdown -h now
%sysadmin ALL = PASSWD: SYSADM_CMD_PASSWD %sysadmin ALL = PASSWD: ALL
%packager ALL = NOPASSWD: DISTRO_CMD %packager ALL = NOPASSWD: DISTRO_CMD
%sysadmin ALL = NOPASSWD: DISTRO_CMD %sysadmin ALL = NOPASSWD: DISTRO_CMD
%sysadmin ALL = NOPASSWD: SYSADM_CMD %sysadmin ALL = NOPASSWD: SYSADM_CMD

View File

@ -4,8 +4,8 @@
%define with_exempt 0 %define with_exempt 0
Name: sudo Name: sudo
Version: 1.8.28 Version: 1.8.29
Release: 1mamba Release: 2mamba
Summary: Allows restricted root access for specified users Summary: Allows restricted root access for specified users
Group: System/Tools Group: System/Tools
Vendor: openmamba Vendor: openmamba
@ -166,6 +166,12 @@ exit 0
#%doc ChangeLog README README.LDAP #%doc ChangeLog README README.LDAP
%changelog %changelog
* Mon Nov 04 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <autodist@mambasoft.it> 1.8.29-1mamba
- automatic version update by autodist
* Tue Oct 15 2019 Automatic Build System <autodist@mambasoft.it> 1.8.28-1mamba * Tue Oct 15 2019 Automatic Build System <autodist@mambasoft.it> 1.8.28-1mamba
- automatic version update by autodist - automatic version update by autodist