zabbix-scripts icon indicating copy to clipboard operation
zabbix-scripts copied to clipboard

Sudoers.d

Open srekkas opened this issue 7 years ago • 0 comments

sudo_zbx-zimbra.conf won't work with extension .conf. At least in Centos 7. And it need to be created like that "sudo visudo -f /etc/sudoers.d/sudo_zbx-zimbra", so it will be created with correct permissions. You can update readme :) And i changed "Cmnd_Alias ZIMBRA_BIN_ZABBIX = /opt/zimbra/bin/zmcontrol status, /opt/zimbra/bin/zmcontrol -v" line, that it cant stop services accidentally.

From manual: sudo will read each file in /etc/sudoers.d, skipping file names that end in ‘~’ or contain a ‘.’ character to avoid causing problems with package manager or editor temporary/backup files.

srekkas avatar Jun 20 '18 06:06 srekkas