Browse Source

fixed sudo config for running the Bind update script

Roman Dmitriev 2 years ago
parent
commit
fbb7a92ebb
2 changed files with 2 additions and 0 deletions
  1. 1 0
      docs/sudoers.d/apache
  2. 1 0
      docs/sudoers.d/www-data

+ 1 - 0
docs/sudoers.d/apache

@@ -1,5 +1,6 @@
 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/update-named
 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

@@ -1,5 +1,6 @@
 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/update-named
 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