diff --git a/rsync-backup-target/build/Dockerfile b/rsync-backup-target/build/Dockerfile index 5415bdc7..4e499d29 100644 --- a/rsync-backup-target/build/Dockerfile +++ b/rsync-backup-target/build/Dockerfile @@ -12,7 +12,7 @@ RUN mkdir -p /var/lib/rsync /var/log/rsync && \ adduser -S rsync -h /var/lib/rsync -G rsync && \ chown rsync:rsync /var/lib/rsync /var/log/rsync -## Without this, account is concidered locked by SSH +## Without this, account is considered locked by SSH RUN sed -ri 's/^rsync:!:/rsync:*NP*:/g' /etc/shadow ## Withouth this, force-command will not run diff --git a/rsync-backup-target/build/entrypoint.sh b/rsync-backup-target/build/entrypoint.sh index 3966cf3f..e29276dd 100755 --- a/rsync-backup-target/build/entrypoint.sh +++ b/rsync-backup-target/build/entrypoint.sh @@ -26,7 +26,7 @@ if ! egrep '^[^:]+:x:101:101:' /etc/passwd; then echo "Error: couldn't create user $user or chown '$user_dir'." >&2 exit 1 } - ## Without this, account is concidered locked by SSH + ## Without this, account is considered locked by SSH sed -ri "s/^$user:\!:/$user:*NP*:/g" /etc/shadow ## Withouth this, force-command will not run