Give sudo permissions for both backup and backuppc user
This commit is contained in:
parent
6a62d2ff26
commit
6d78838d8a
|
@ -11,9 +11,9 @@ DEBUG=1
|
||||||
EUID=$(id -u)
|
EUID=$(id -u)
|
||||||
|
|
||||||
BACKUP_USER_LOGIN="backup"
|
BACKUP_USER_LOGIN="backup"
|
||||||
#BACKUP_USER_LOGIN="backuppc"
|
SUDOERS_LINE_REGEXP="backuppc.*ALL.*=.*(ALL:ALL).*NOEXEC:NOPASSWD:.*/usr/bin/rsync"
|
||||||
SUDOERS_LINE_REGEXP="${BACKUP_USER_LOGIN}.*ALL.*=.*(ALL:ALL).*NOEXEC:NOPASSWD:.*/usr/bin/rsync"
|
SUDOERS_LINE="backup ALL=(ALL:ALL) NOEXEC:NOPASSWD: /usr/bin/rsync
|
||||||
SUDOERS_LINE="${BACKUP_USER_LOGIN} ALL=(ALL:ALL) NOEXEC:NOPASSWD: /usr/bin/rsync"
|
backuppc ALL=(ALL:ALL) NOEXEC:NOPASSWD: /usr/bin/rsync"
|
||||||
SUDOERS_FILE="/etc/sudoers.d/backuppc_noexec"
|
SUDOERS_FILE="/etc/sudoers.d/backuppc_noexec"
|
||||||
# ]]]
|
# ]]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue