# JLdL 16May16.
#
# /etc/sudoers.d/dynahost
#
# This file MUST be edited with the 'visudo -f <filename>' command as root.
#
# This is the sudoers file for the dynahost subsystem; it containing
# _ entries to allow the web server to run, via CGI, the dynahostnis
# _ and dynahostdns programs.
#
# Host alias specifications.
#
# The dynamical-IP host registration server.
Host_Alias	DYNHST = <hostname>
#
# User alias specifications.
#
# The apache user running cgi.
User_Alias	WEBCGI = <www-data>
#
# Cmnd alias specifications.
#
# The script to register hosts on NIS via a web form.
Cmnd_Alias	CGINIS = /usr/lib/dynahost/dynahostnis
#
# The script to register hosts on DNS via a web form.
Cmnd_Alias	CGIDNS = /usr/lib/dynahost/dynahostdns
#
# User privilege specifications.
#
# The apache server can run the dynamical hosts NIS script.
WEBCGI	DYNHST = NOPASSWD: CGINIS
#
# The apache server can run the dynamical hosts DNS script.
WEBCGI	DYNHST = NOPASSWD: CGIDNS
