diff options
-rw-r--r-- | debian/install | 1 | ||||
-rwxr-xr-x | sudoers.d/byteback | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/install b/debian/install index 9c9199f..73ce9d1 100644 --- a/debian/install +++ b/debian/install @@ -5,3 +5,4 @@ byteback-setup-client-receive /usr/bin byteback-snapshot /usr/bin byteback-prune /usr/bin lib/* /usr/lib/byteback +sudoers.d/byteback /etc/sudoers.d/ diff --git a/sudoers.d/byteback b/sudoers.d/byteback new file mode 100755 index 0000000..5a5a39e --- /dev/null +++ b/sudoers.d/byteback @@ -0,0 +1,7 @@ +# sudoers file for byteback +# +byteback ALL = (root) NOPASSWD: /usr/bin/byteback-snapshot +byteback ALL = (root) NOPASSWD: /sbin/btrfs subvolume create /store/backups/*/current +byteback ALL = (root) NOPASSWD: /sbin/btrfs subvolume delete /store/backups/* + +Defaults:byteback !requiretty |