Hi Richard
These errors were found in the apache error log on a Ubuntu 16.04 system rather than CentOS/RedHat system. Reading the man, the requiretty "flag is off by default", which I guess is correct for this use case ( please correct me if I'm wrong here ).
Thanks
James
ls -l /etc/sudoers
-r--r----- 1 root root 755 Oct 23 12:14 /etc/sudoers
ls -l /etc/sudoers.d
-r--r----- 1 root root 3691 Oct 30 2017 jobe-sudoers
sudo cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
sudo cat /etc/sudoers.d/jobe-sudoers
www-data ALL=(root) NOPASSWD: /var/www/jobe/runguard/runguard
www-data ALL=(root) NOPASSWD: /bin/rm -R /home/jobe/runs/*
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe00
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe00 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe00 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe00 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe00 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe01
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe01 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe01 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe01 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe01 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe02
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe02 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe02 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe02 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe02 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe03
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe03 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe03 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe03 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe03 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe04
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe04 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe04 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe04 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe04 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe05
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe05 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe05 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe05 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe05 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe06
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe06 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe06 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe06 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe06 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe07
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe07 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe07 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe07 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe07 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe08
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe08 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe08 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe08 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe08 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/pkill -9 -u jobe09
www-data ALL=(root) NOPASSWD: /usr/bin/find /tmp/ -user jobe09 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/tmp/ -user jobe09 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /var/crash/ -user jobe09 -delete
www-data ALL=(root) NOPASSWD: /usr/bin/find /run/lock/ -user jobe09 -delete