aboutsummaryrefslogtreecommitdiff
path: root/openssh/postinstall
diff options
context:
space:
mode:
Diffstat (limited to 'openssh/postinstall')
-rwxr-xr-xopenssh/postinstall10
1 files changed, 10 insertions, 0 deletions
diff --git a/openssh/postinstall b/openssh/postinstall
new file mode 100755
index 00000000..981ce237
--- /dev/null
+++ b/openssh/postinstall
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+getent group sshd >/dev/null || groupadd -g 50 sshd
+getent passwd messagebus >/dev/null || \
+ useradd -c 'sshd PrivSep' \
+ -d /var/lib/sshd \
+ -g sshd \
+ -s /bin/false \
+ -u 50 sshd
+