Просмотр исходного кода

change sudoers for logging dhcp from web

Roman Dmitriev 3 лет назад
Родитель
Сommit
e2427d1fdd
2 измененных файлов с 6 добавлено и 1 удалено
  1. 5 1
      docs/sudoers.d/apache
  2. 1 0
      docs/sudoers.d/www-data

+ 5 - 1
docs/sudoers.d/apache

@@ -1 +1,5 @@
-apache	ALL=(ALL)	NOPASSWD: /opt/Eye/scripts/sync_mikrotik.pl, /opt/Eye/scripts/update-dnsmasq, /opt/Eye/scripts/fetch_new_arp.pl
+apache        ALL=(root)      NOPASSWD: /opt/Eye/scripts/sync_mikrotik.pl
+apache        ALL=(root)      NOPASSWD: /opt/Eye/scripts/update-dnsmasq
+apache        ALL=(root)      NOPASSWD: /opt/Eye/scripts/fetch_new_arp.pl
+apache        ALL=(root)      NOPASSWD: /opt/Eye/scripts/restart_nagios
+apache        ALL=(root)      NOPASSWD: /opt/Eye/scripts/dnsmasq-hook.sh

+ 1 - 0
docs/sudoers.d/www-data

@@ -2,3 +2,4 @@ www-data        ALL=(root)      NOPASSWD: /opt/Eye/scripts/sync_mikrotik.pl
 www-data        ALL=(root)      NOPASSWD: /opt/Eye/scripts/update-dnsmasq
 www-data        ALL=(root)      NOPASSWD: /opt/Eye/scripts/fetch_new_arp.pl
 www-data        ALL=(root)      NOPASSWD: /opt/Eye/scripts/restart_nagios
+www-data        ALL=(root)      NOPASSWD: /opt/Eye/scripts/dnsmasq-hook.sh