Aktionen
sudo¶
is an alias for substitute user do
, it allows user to run programs with root-privileges.
usage¶
example: run dnf update
sudo dnf update
example: show available commands
sudo -l
config wheel group¶
any user in wheel
is allowed to sudo into everything
usermod -aG wheel USERNAME
config /etc/sudoers.d¶
make a separate file for each user
visudo -f /etc/sudoers.d/zabbix
zabbix ALL = NOPASSWD:/usr/local/bin/get_smart_value.sh
trusted_user ALL=/bin/bash
check configuration¶
visudo -c
Von Jeremias Keihsler vor 3 Monaten aktualisiert · 1 Revisionen