Commit f9529f64 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Moved nmap from /etc/sudoers into dedicated file in /etc/sudoers.d to avoid...

Moved nmap from /etc/sudoers into dedicated file in /etc/sudoers.d to avoid destruction by sudo late installation
parent 248b8e72
......@@ -213,8 +213,8 @@ server: zabbix-server-service zabbix-server-config httpd-conf
systemctl enable zabbix-server.service
@echo "$$ZABBIX_SERVER_CONFIG" >> /etc/config/zabbix
install -v -Dm755 zabbix_server /usr/share/easycwmp/functions/zabbix
echo "Defaults !requiretty" >> /etc/sudoers
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers
echo "Defaults !requiretty" > /etc/sudoers.d/nmap
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/nmap
rm -rf zabbix-5.4.2
zabbix-server-service:
......@@ -285,8 +285,8 @@ proxy: zabbix-proxy-service zabbix-proxy-config
systemctl enable zabbix-proxy.service
@echo "$$ZABBIX_PROXY_CONFIG" >> /etc/config/zabbix
install -v -Dm755 zabbix_proxy /usr/share/easycwmp/functions/zabbix
echo "Defaults !requiretty" >> /etc/sudoers
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers
echo "Defaults !requiretty" > /etc/sudoers.d/nmap
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/nmap
rm -rf zabbix-5.4.2
zabbix-proxy-service:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment