Skip to content

Commit 7606061

Browse files
MoshiBintechknowlogick
authored andcommitted
Fix bug on modifying sshd username (#5624)
Should fix #5623
1 parent 74b9a13 commit 7606061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/usr/bin/entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ "${USER}" != "git" ]; then
44
# rename user
55
sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
66
# switch sshd config to different user
7-
sed -i -e "s/AllowUsers git/AllowUsers ${USER}/g" /etc/ssh/sshd_config
7+
sed -i -e "s/AllowUsers git$/AllowUsers ${USER}/g" /etc/ssh/sshd_config
88
fi
99

1010
## Change GID for USER?

0 commit comments

Comments
 (0)