# - Example sudo configuration file to allow bc-agent to execute commands as users other
# - than itself (bc-daemon). To install:
#
# 1 - uncomment and optionally modify ONE of the entries
# 2 - copy this file to /etc/sudoers.d/90-beyondcron
#
# - on EVERY host which BeyondCron is installed AND any host on which BeyondCron executes job commands.

# - Minimal entry which allows bc-agent to execute all commands as anyone EXCEPT root.
# - To enable, UNCOMMENT the following line:
# bc-daemon ALL=(ALL,!root) NOPASSWD: ALL

# - Entry which allows bc-agent to execute all commands as anyone EXCEPT root, or to
# - execute specific commands as root. To enable, UNCOMMENT the following line:
# bc-daemon ALL=(ALL,!root) NOPASSWD: ALL, (root) SETENV: /usr/bin/tee,/usr/bin/kill,/sbin/reboot

# - Note: bc-agent uses /usr/bin/tee to save the command output, and /usr/bin/kill to stop running commands
# -       so they should always be included when allowing bc-agent to execute commands as root.

# - Entry which allows bc-agent to execute all command as anything INCLUDING root
# - To enable, UNCOMMENT the following line:
# bc-daemon ALL=(ALL) NOPASSWD: ALL