From: hackbard Date: Sun, 25 Jul 2004 10:28:08 +0000 (+0000) Subject: added openssh setup script X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=8bd71d121b0d52455519c6ccbc957853de42af81;p=hdw-linux%2Fhdw-linux.git added openssh setup script --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index a62257c..b12d3ee 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,5 +1,6 @@ *) 2004-07-25 +- added setup script for openssh - some target modifications - added FAI docu and script (not working yet, just to have it there!) - updated ardour diff --git a/packages/security/openssh/openssh b/packages/security/openssh/openssh index bee0458..bb751ad 100644 --- a/packages/security/openssh/openssh +++ b/packages/security/openssh/openssh @@ -10,10 +10,7 @@ flist_pruned="${flist_pruned}|etc/shadow|etc/passwd|etc/group" pre_install() { export LD=gcc - # add the sshd user - echo "adding user sshd ..." - [ -z "`cat $root/etc/passwd | grep sshd`" ] && useradd sshd - echo "done." + useradd -u 1025 -c 'sshd server' sshd || true } confopt="$confopt --with-md5-passwords --without-pam --with-tcp-wrappers \ diff --git a/packages/security/openssh/openssh.setup b/packages/security/openssh/openssh.setup new file mode 100644 index 0000000..603bbb1 --- /dev/null +++ b/packages/security/openssh/openssh.setup @@ -0,0 +1,7 @@ +setup_block() { + useradd -u 1025 -c 'sshd server' sshd || true + } + +uninstall_block() { + userdel sshd || true + }