add sshd user
This commit is contained in:
parent
0d954f0c60
commit
140ace9b77
1 changed files with 4 additions and 1 deletions
|
|
@ -59,16 +59,19 @@ pkgs.dockerTools.buildLayeredImage {
|
|||
|
||||
cat <<EOF > ./etc/passwd
|
||||
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
|
||||
EOF
|
||||
|
||||
cat <<EOF > ./etc/group
|
||||
root:x:0:
|
||||
sshd:x:100:
|
||||
dev:x:1000:
|
||||
EOF
|
||||
|
||||
cat <<EOF > ./etc/shadow
|
||||
root:*:19000:0:99999:7:::
|
||||
root::19000:0:99999:7:::
|
||||
sshd:*:19861:0:99999:7:::
|
||||
dev::19000:0:99999:7:::
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue