aboutsummaryrefslogtreecommitdiff
path: root/security/openssh
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-06-24 23:17:03 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-06-24 23:17:03 +0000
commit711a2af34dc6c9c5e3c1c4a1edccac84bf3b1d43 (patch)
tree176b3ac9e605c5b0d76678278e57e6148118952c /security/openssh
parentdea8f0280a584edbef126d277ea5d89b0296166f (diff)
downloadports-711a2af34dc6c9c5e3c1c4a1edccac84bf3b1d43.tar.gz
ports-711a2af34dc6c9c5e3c1c4a1edccac84bf3b1d43.zip
Notes
Diffstat (limited to 'security/openssh')
-rw-r--r--security/openssh/pkg-plist3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/openssh/pkg-plist b/security/openssh/pkg-plist
index 49bdec074f00..977c6e9a8e86 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