65d5711420
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_openssh@4412 504e572c-2e33-0410-9681-be2bf7408885
56 lines
1.7 KiB
Bash
56 lines
1.7 KiB
Bash
#!/bin/bash
|
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|
#dieses Framework wird im CVS Repository
|
|
#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt
|
|
#
|
|
#Lage dieser Datei im Archiv: $Source$
|
|
#
|
|
#(c) Rainmaker MultiMedia OHG
|
|
#This program is free software; you can redistribute it and/or
|
|
#modify ist under the terms of the GNU General Public License
|
|
#as published by the Free Software Foundation; either version
|
|
#2 of the License, or (at your option) any later version.
|
|
#
|
|
#This program is distributed in the hope that it will be useful,
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
#See the GNU General Public License for more details.
|
|
#
|
|
#You should have received a copy of the GNU General Public License
|
|
#along with this program; if not write to the Free Software Foundation,
|
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
#Beschreibung:
|
|
#Postinstallation Datei für openssh
|
|
#
|
|
#
|
|
#Aufrufparameter:
|
|
#
|
|
#Letzte Änderung von: $Author$
|
|
#Datum der letzten Änderung: $Date$
|
|
#Version der Datei: $Revision$
|
|
#
|
|
#$Log$
|
|
#Revision 1.4 2007/04/29 10:01:24 kueller
|
|
#ssh user und group wird jetzt fest auf uid 41 und gid 20 angelegt
|
|
#
|
|
#Revision 1.3 2007/02/22 14:33:51 kueller
|
|
#Abfrage auf vorhandensein von sshd (user) verbessert
|
|
#
|
|
#Revision 1.2 2002/10/09 08:17:35 kueller
|
|
#1. Zeile war eine Leerzeile, dadurch kann es zu fehlern bei der Script
|
|
#ausführung kommen (z.B. falsche Shell)
|
|
#
|
|
#Revision 1.1 2002/08/07 20:50:50 hkueller
|
|
#Postinstall zur anlage des inzwischen notwendigen sshd users
|
|
#erzeugt
|
|
#
|
|
#
|
|
|
|
if ! getent group sshd >/dev/null; then
|
|
groupadd -g 20 sshd
|
|
fi
|
|
if ! getent passwd sshd >/dev/null; then
|
|
useradd -u 41 sshd -g sshd
|
|
fi
|