diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 16:00:31 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 16:00:31 +0200 |
| commit | 0dd27636b7f7355e9149b1beaa5804f45b07418f (patch) | |
| tree | 180d30fad9d1139d6c00de646fd5fabe990449db /f3s/git-server | |
| parent | 55a3aba4986819ec2a8fa70b3abb1fe240a22b4a (diff) | |
Add git-shell to /etc/shells for SSH validity
SSH requires user shells to be listed in /etc/shells.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/git-server')
| -rw-r--r-- | f3s/git-server/docker-image/Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/f3s/git-server/docker-image/Dockerfile b/f3s/git-server/docker-image/Dockerfile index f721fab..f191443 100644 --- a/f3s/git-server/docker-image/Dockerfile +++ b/f3s/git-server/docker-image/Dockerfile @@ -7,7 +7,8 @@ RUN apk add --no-cache openssh git # This restricts the user to git operations only RUN adduser -D -u 1000 -s /usr/bin/git-shell git && \ mkdir -p /home/git/.ssh /repos && \ - chown -R git:git /home/git /repos + chown -R git:git /home/git /repos && \ + echo "/usr/bin/git-shell" >> /etc/shells # Copy sshd configuration to /tmp (will be copied to /etc/ssh by entrypoint) COPY sshd_config /tmp/sshd_config |
