We just need to add the following line to /etc/sudoers
1 | zabbix ALL=(root) NOPASSWD:/bin/bash /etc/zabbix/scripts/hparray.sh |
After NOPASSWD: we'll place the commands we want to allow.
Cap comentari:
Publica un comentari a l'entrada