2024-01-05 18:11:17 +01:00
|
|
|
# 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
|
2024-01-05 18:11:20 +01:00
|
|
|
Cmnd_Alias PACKAGER_CMD = /usr/bin/rpm, /usr/bin/dnf, /usr/sbin/ldconfig
|
2024-01-05 18:11:17 +01:00
|
|
|
# Cmnd_Alias EXTRA_CMD =
|
2024-01-05 18:11:20 +01:00
|
|
|
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/*
|
2024-01-05 18:11:17 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2024-01-05 18:11:18 +01:00
|
|
|
%sysadmin ALL = PASSWD: ALL
|
2024-01-05 18:11:20 +01:00
|
|
|
%packager ALL = NOPASSWD: PACKAGER_CMD
|
2024-01-05 18:11:17 +01:00
|
|
|
%sysadmin ALL = NOPASSWD: SYSADM_CMD
|
2024-01-05 18:11:17 +01:00
|
|
|
# %sysadmin ALL = NOPASSWD: EXTRA_CMD
|
2024-01-05 18:11:17 +01:00
|
|
|
|
|
|
|
#includedir /etc/sudoers.d
|