zabbix_agentd: Bugfix for /etc/sudoers.d/zabbix.user

Files containing an '~' or '.' are ignored by sudo when placed in the includedir /etc/sudoers.d This makes the file useless. The file is renamed to "zabbix" instead of "zabbix.user" to fix this.

See: https://www.sudo.ws/man/1.8.13/sudoers.man.html#Including_other_files_from_within_sudoers

Signed-off-by: Alexander Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Alexander Koch
2019-04-10 20:33:31 +02:00
committed by Michael Tremer
parent 854b63c42a
commit 41b7369f80
4 changed files with 8 additions and 3 deletions

View File

@@ -24,3 +24,8 @@
. /opt/pakfire/lib/functions.sh
./uninstall.sh
./install.sh
# Ensure /etc/sudoers.d/zabbix.user is renamed to /etc/sudoers.d/zabbix
if [ -e /etc/sudoers.d/zabbix.user ]; then
mv -v /etc/sudoers.d/zabbix.user /etc/sudoers.d/zabbix
fi