(Probleme ohne KeyHelp-Bezug gehören ins Offtopic-Forum)
Ja, vermutlich.
Server-Betriebssystem + Version
(z.B. Ubuntu 20.04)
Debian 11.11
Eingesetzte Server-Virtualisierung-Technologie
(z.B. keine, OpenVZ, KVM, XEN, etc.)
keine
KeyHelp-Version + Build-Nummer
(z.B. 22.0 - Build 2366)
25.0 (Build 3398)
Problembeschreibung / Fehlermeldungen
Beim Klick auf "Status zurücksetzen" in der Datenbank-Status Seite kommt folgender Fehler:
"Der Datenbank-Status konnte nicht zurückgesetzt werden."
Außerdem erhalte ich eine Mail mit Betreff: *** SECURITY information for host ***
und Inhalt:
host : Feb 5 13:02:00 : keyhelp : a password is required ; PWD=/home/keyhelp/www/keyhelp ; USER=root ; COMMAND=/bin/systemctl restart mysql
Erwartetes Ergebnis
Status wird ohne Fehler zurück gesetzt
Tatsächliches Ergebnis
s.o.
Schritte zur Reproduktion
s.o.
Zusätzliche Informationen
Da vermutlich ein sudo-Problem, füge ich mal meine sudoers configs hinzu:
Code: Select all
root@web:~# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
#Allow nagios to run certain plugins as root
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_megaraid_sas
Code: Select all
root@web:~# cat /etc/sudoers.d/keyhelp
# Manage system services
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/systemctl
# Mail queue management
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/postsuper
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/postcat
# Server reboot
keyhelp ALL = (ALL) NOPASSWD: /sbin/reboot
# Process management
keyhelp ALL = (ALL) NOPASSWD: /bin/kill
# Disk usage
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/du
keyhelp ALL = (ALL) NOPASSWD: /bin/ls
# Firewall
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/iptables, /sbin/iptables
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/iptables-restore, /sbin/iptables-restore
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/iptables-save, /sbin/iptables-save
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/ip6tables, /sbin/ip6tables
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/ip6tables-restore, /sbin/ip6tables-restore
keyhelp ALL = (ALL) NOPASSWD: /usr/sbin/ip6tables-save, /sbin/ip6tables-save
# Dovecot active sessions
keyhelp ALL = (root) NOPASSWD: /usr/bin/doveadm who
# API - Export account system passwords
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/getent
# Backup
keyhelp ALL = (ALL) NOPASSWD:SETENV: /usr/local/bin/restic
keyhelp ALL = (ALL) NOPASSWD: /bin/chown
# Fail2Ban management
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/fail2ban-client, /usr/local/bin/fail2ban-client
# Socket status - Allow full output when using the "--extended" parameter of "ss"
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/ss, /bin/ss
# Mail queue - Allow direct access to /var/spool/postfix/*
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/find
# Disk overview - Allow display of remote file systems
keyhelp ALL = (ALL) NOPASSWD: /usr/bin/df, /bin/df
# Last line must be empty, do not trim!