diff --git a/client/fix_backuppc_linux_sudo.sh b/client/fix_backuppc_linux_sudo.sh index bd827f0..d95d344 100755 --- a/client/fix_backuppc_linux_sudo.sh +++ b/client/fix_backuppc_linux_sudo.sh @@ -11,9 +11,9 @@ DEBUG=1 EUID=$(id -u) BACKUP_USER_LOGIN="backup" -#BACKUP_USER_LOGIN="backuppc" -SUDOERS_LINE_REGEXP="${BACKUP_USER_LOGIN}.*ALL.*=.*(ALL:ALL).*NOEXEC:NOPASSWD:.*/usr/bin/rsync" -SUDOERS_LINE="${BACKUP_USER_LOGIN} ALL=(ALL:ALL) NOEXEC:NOPASSWD: /usr/bin/rsync" +SUDOERS_LINE_REGEXP="backuppc.*ALL.*=.*(ALL:ALL).*NOEXEC:NOPASSWD:.*/usr/bin/rsync" +SUDOERS_LINE="backup ALL=(ALL:ALL) NOEXEC:NOPASSWD: /usr/bin/rsync +backuppc ALL=(ALL:ALL) NOEXEC:NOPASSWD: /usr/bin/rsync" SUDOERS_FILE="/etc/sudoers.d/backuppc_noexec" # ]]]