[root@pbx ~]# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
# Rules to allow receptionists to login/logout
apache ALL=(root) /etc/asterisk/reception-in.sh, NOPASSWD: ALL
apache ALL=(root) /etc/asterisk/reception-out.sh, NOPASSWD: ALL
# Rules to allow Apache running PHP to send Jabber messages out
apache ALL=(root) /usr/bin/sendxmpp, NOPASSWD: ALL
apache ALL=(root) /usr/bin/sendxmpp-wrapper, NOPASSWD: ALL
[root@pbx ~]#