Skip to content

Instantly share code, notes, and snippets.

@skarllot
Last active January 2, 2016 12:18
Show Gist options
  • Save skarllot/8301991 to your computer and use it in GitHub Desktop.
Save skarllot/8301991 to your computer and use it in GitHub Desktop.
Configure sudoers to Webacula
## /etc/sudoers.d/webacula
Defaults:apache !requiretty
apache ALL=(bacula) NOPASSWD: /usr/sbin/bconsole
## Bareos
# apache ALL=(bareos) NOPASSWD: /usr/sbin/bconsole
## Test using:
## `su -l apache -s /bin/sh \
## -c "/usr/bin/sudo -u bacula /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment