From 2edc2b6147f36f88b468a20944f50d369961f8b4 Mon Sep 17 00:00:00 2001 From: dinoex Date: Mon, 24 Jun 2002 23:17:03 +0000 Subject: Create user when package is extracted --- security/openssh/pkg-plist | 3 +++ 1 file changed, 3 insertions(+) (limited to 'security/openssh') diff --git a/security/openssh/pkg-plist b/security/openssh/pkg-plist index 49bdec0..977c6e9 100644 --- a/security/openssh/pkg-plist +++ b/security/openssh/pkg-plist @@ -33,3 +33,6 @@ libdata/ssh/Ssh.bin @exec if [ ! -f %D/etc/ssh/ssh_host_key ]; then echo ">> Generating a secret RSA1 host key."; %D/bin/ssh-keygen -t rsa1 -N "" -f %D/etc/ssh/ssh_host_key; fi @exec if [ ! -f %D/etc/ssh/ssh_host_rsa_key ]; then echo ">> Generating a secret RSA host key."; %D/bin/ssh-keygen -t rsa -N "" -f %D/etc/ssh/ssh_host_rsa_key; fi @exec if [ ! -f %D/etc/ssh/ssh_host_dsa_key ]; then echo ">> Generating a secret DSA host key."; %D/bin/ssh-keygen -t dsa -N "" -f %D/etc/ssh/ssh_host_dsa_key; fi +@dirrm empty +@exec if ! pw groupshow sshd 2>/dev/null; then pw groupadd sshd -g 22; fi +@exec if ! pw usershow sshd 2>/dev/null; then pw useradd sshd -g smmsp -u 22 -h - -d %D/empty -s /nonexistent -c "sshd privilege separation"; fi -- cgit v1.1