mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
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:
committed by
Michael Tremer
parent
854b63c42a
commit
41b7369f80
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user