Silvan Calarco
1b36b7eab9
NOPASSWD rpm and dnf only for packager group, no longer for sysadmin [release 1.9.12-2mamba;Tue Jan 24 2023]
35 lines
894 B
Plaintext
35 lines
894 B
Plaintext
# sudoers file.
|
|
#
|
|
# This file MUST be edited with the 'visudo' command as root.
|
|
#
|
|
# See the sudoers man page for the details on how to write a sudoers file.
|
|
#
|
|
|
|
# Host alias specification
|
|
|
|
# User alias specification
|
|
|
|
# Cmnd alias specification
|
|
Cmnd_Alias PACKAGER_CMD = /usr/bin/rpm, /usr/bin/dnf, /usr/sbin/ldconfig
|
|
# Cmnd_Alias EXTRA_CMD =
|
|
Cmnd_Alias SYSADM_CMD = /usr/bin/systemctl, /usr/bin/journalctl, /usr/sbin/ufw
|
|
Cmnd_Alias SYSADM_CMD_PASSWD = /sbin/*, /usr/sbin/*, /bin/*, /usr/bin/*, /opt/kde/bin/*
|
|
|
|
# Defaults specification
|
|
|
|
# Runas alias specification
|
|
|
|
# User privilege specification
|
|
root ALL=(ALL) ALL
|
|
|
|
# Samples
|
|
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
|
|
# %users localhost=/sbin/shutdown -h now
|
|
|
|
%sysadmin ALL = PASSWD: ALL
|
|
%packager ALL = NOPASSWD: PACKAGER_CMD
|
|
%sysadmin ALL = NOPASSWD: SYSADM_CMD
|
|
# %sysadmin ALL = NOPASSWD: EXTRA_CMD
|
|
|
|
#includedir /etc/sudoers.d
|