add sshd user

This commit is contained in:
nyxerinys 2026-06-30 11:21:49 -05:00
parent 0d954f0c60
commit 140ace9b77

View file

@ -59,16 +59,19 @@ pkgs.dockerTools.buildLayeredImage {
cat <<EOF > ./etc/passwd cat <<EOF > ./etc/passwd
root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
sshd:x:100:100:sshd:/usr/share/empty.sshd:/sbin/nologin
dev:x:1000:1000:dev:/home/dev:/bin/bash dev:x:1000:1000:dev:/home/dev:/bin/bash
EOF EOF
cat <<EOF > ./etc/group cat <<EOF > ./etc/group
root:x:0: root:x:0:
sshd:x:100:
dev:x:1000: dev:x:1000:
EOF EOF
cat <<EOF > ./etc/shadow cat <<EOF > ./etc/shadow
root:*:19000:0:99999:7::: root::19000:0:99999:7:::
sshd:*:19861:0:99999:7:::
dev::19000:0:99999:7::: dev::19000:0:99999:7:::
EOF EOF