commit 83657fd6dc498c7ad919600c233e7f0b334e2a0e
parent 41f6122497161a6ba8b8ef5588bbefc6f03e5091
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Fri, 16 Sep 2022 03:37:53 +0200
Align sshd user description and homedir with Alpine default.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postinstall.aat b/postinstall.aat
@@ -103,7 +103,7 @@
?i grep -q '^root:.*:{<root_shell>}$'
!f sed -Ee 's|^(root:.*:)[^:]*$|\1{<root_shell>}|'
-|passwd_user("sshd:x:22:22:server privilege separation,,,:/home/sshd:/sbin/nologin")
+|passwd_user("sshd:x:22:22:sshd:/dev/null:/sbin/nologin")
|shadow_user("sshd:!:10000::::::")
|passwd_user("ccx:x:1000:1000:Jan Pobrislo:/home/ccx:/bin/zsh")
diff --git a/postinstall.fileset b/postinstall.fileset
@@ -38,7 +38,7 @@
!f sed -Ee 's|^(root:.*:)[^:]*$|\1/bin/zsh|'
/etc/passwd f +
-!f awk 'BEGIN { FS=OFS=":"; seen=0; line="sshd:x:22:22:server privilege separation,,,:/home/sshd:/sbin/nologin"; split(line, a) }
+!f awk 'BEGIN { FS=OFS=":"; seen=0; line="sshd:x:22:22:sshd:/dev/null:/sbin/nologin"; split(line, a) }
{ uids[$3] = $0 }
$1 == a[1] {
for(n in a) {