aboutsummaryrefslogtreecommitdiff
path: root/repos/xorg/openssh/postinstall
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-29 23:15:54 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-29 23:15:54 +0800
commitae4593e20cef97c7323d522b40994a59425cd6d5 (patch)
tree7b3e8750bbbfa32e917869e325027108ee59ee85 /repos/xorg/openssh/postinstall
parentb5aa76f45da627817380276080b2b8bba6e74f68 (diff)
downloadalicelinux-ae4593e20cef97c7323d522b40994a59425cd6d5.tar.gz
alicelinux-ae4593e20cef97c7323d522b40994a59425cd6d5.zip
added xorg repo
Diffstat (limited to 'repos/xorg/openssh/postinstall')
-rwxr-xr-xrepos/xorg/openssh/postinstall10
1 files changed, 10 insertions, 0 deletions
diff --git a/repos/xorg/openssh/postinstall b/repos/xorg/openssh/postinstall
new file mode 100755
index 00000000..981ce237
--- /dev/null
+++ b/repos/xorg/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
+