Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_ypserv@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
c686dd88ff
69
etc/init.d/ypserver
Normal file
69
etc/init.d/ypserver
Normal file
@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
# Begin /etc/init.d/network
|
||||
# Script zum start des automount Daemons
|
||||
# Wenn die Datei /etc/sysconfig/auto.master vorhanden ist, wird
|
||||
# der automount Daemon gestartet
|
||||
# Die Timeout Konfiguration erfolg über die Datei /etc/sysconfig/autofstime
|
||||
# (c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
# $Author$
|
||||
# $Date$
|
||||
# $Revision$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.4 2007/05/04 12:16:39 segler
|
||||
# yppasswdd should read its config from /etc/sysconfig/nis/'domainname' instaead of /etc/nis/...
|
||||
#
|
||||
# Revision 1.3 2003/04/19 08:17:33 kueller
|
||||
# restart Option hinzugefügt
|
||||
#
|
||||
# Revision 1.2 2001/11/22 14:00:12 kueller
|
||||
# defaultdomain liegt unter /etc/sysconfig/nis - pfade korrigiert
|
||||
#
|
||||
# Revision 1.1.1.1 2001/09/23 01:21:15 kueller
|
||||
# Neustart wg. Datenverlust
|
||||
#
|
||||
# Revision 1.1.1.1 2001/08/24 16:18:07 kueller
|
||||
# AddOns fuer NIS Server
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
source /etc/init.d/functions
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||
echo -n "starting NIS server"
|
||||
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||
loadproc /usr/sbin/ypserv
|
||||
echo -n "starting NIS Slave Server Support"
|
||||
loadproc /usr/sbin/rpc.ypxfrd
|
||||
echo -n "starting remote passwd support"
|
||||
loadproc /usr/sbin/rpc.yppasswdd -D /etc/sysconfig/nis/`domainname`
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||
cp /etc/nsswitch.conf /etc/nsswitch.sav
|
||||
cp /etc/nsswitch.files /etc/nsswitch.conf
|
||||
echo -n "shutting down remote passwd support"
|
||||
killproc /usr/sbin/rpc.yppasswdd
|
||||
echo -n "shutting down Slave Server Support"
|
||||
killproc /usr/sbin/rpc.ypxfrd
|
||||
echo -n "shutting down NIS server"
|
||||
killproc /usr/bin/ypserv
|
||||
cp /etc/nsswitch.sav /etc/nsswitch.conf
|
||||
rm /etc/nsswitch.sav
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0: {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
#end /etc/inet.d/network
|
12
etc/init/yppasswdd.conf
Normal file
12
etc/init/yppasswdd.conf
Normal file
@ -0,0 +1,12 @@
|
||||
description "If configured, startup rpc.ypxfrd (slave yp server) prozess"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on yppasswd
|
||||
stop on stopping ypserv
|
||||
|
||||
console none
|
||||
|
||||
expect daemon
|
||||
exec /usr/sbin/rpc.yppasswdd -D $PASSPATH
|
24
etc/init/ypserv.conf
Normal file
24
etc/init/ypserv.conf
Normal file
@ -0,0 +1,24 @@
|
||||
description "If configured, startup ypserver prozess"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on ( runlevel [2345] and (started rpc))
|
||||
stop on stopping rpc
|
||||
|
||||
console none
|
||||
|
||||
pre-start script
|
||||
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||
else
|
||||
exit 10
|
||||
fi
|
||||
end script
|
||||
|
||||
expect daemon
|
||||
exec /usr/sbin/ypserv
|
||||
|
||||
post-start script
|
||||
initctl emit yppasswd PASSPATH=/etc/sysconfig/nis/`domainname`
|
||||
end script
|
12
etc/init/ypxfrd.conf
Normal file
12
etc/init/ypxfrd.conf
Normal file
@ -0,0 +1,12 @@
|
||||
description "If configured, startup rpc.ypxfrd (slave yp server) prozess"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on started ypserv
|
||||
stop on stopping ypserv
|
||||
|
||||
console none
|
||||
|
||||
expect daemon
|
||||
exec /usr/sbin/rpc.ypxfrd
|
26
etc/locale
Normal file
26
etc/locale
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# locale The locale file. Entries look like this:
|
||||
#
|
||||
# locale NIS-domain
|
||||
#
|
||||
# So for example a locale for nis.domain could be:
|
||||
#
|
||||
# en_US nis.domain
|
||||
#
|
||||
# (c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
# $Author$
|
||||
# $Date$
|
||||
# $Revision$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 2001/09/23 01:21:15 kueller
|
||||
# Initial revision
|
||||
#
|
||||
# Revision 1.1.1.1 2001/08/24 16:18:07 kueller
|
||||
# AddOns fuer NIS Server
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# en_US nis.domain
|
37
etc/netgroup
Normal file
37
etc/netgroup
Normal file
@ -0,0 +1,37 @@
|
||||
#
|
||||
# netgroup The netgroup file. Entries look like this:
|
||||
#
|
||||
# netgroup (host,user,domain) (host,user,domain) ..
|
||||
#
|
||||
# So for example a netgroup for powerusers could be:
|
||||
#
|
||||
# powerusers (,miquels,) (,torvalds,) (,fubar,)
|
||||
#
|
||||
# And an entry in the password file like
|
||||
#
|
||||
# +@powerusers::::::
|
||||
# +:*:::::/etc/NoShell
|
||||
#
|
||||
# would give access only to the users in "powerusers", while the
|
||||
# other users would be known to the system but have an invalid
|
||||
# shell AND an invalid password (with Linux, you can also
|
||||
# override the password field).
|
||||
#
|
||||
# (c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
# $Author$
|
||||
# $Date$
|
||||
# $Revision$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 2001/09/23 01:21:15 kueller
|
||||
# Initial revision
|
||||
#
|
||||
# Revision 1.1.1.1 2001/08/24 16:18:07 kueller
|
||||
# AddOns fuer NIS Server
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# powerusers (,miquels,) (,torvalds,) (,fubar,)
|
||||
# ourhosts (picard,,) (enterprise,,) (laforge,,) (Q,,)
|
29
etc/netmasks
Normal file
29
etc/netmasks
Normal file
@ -0,0 +1,29 @@
|
||||
#
|
||||
# netmasks The netmasks file. Entries look like this:
|
||||
#
|
||||
# network netmask
|
||||
#
|
||||
# So for example a netmask for the 192.168.0 network could be:
|
||||
#
|
||||
# 192.168.0 255.255.255.0
|
||||
#
|
||||
# (c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
# $Author$
|
||||
# $Date$
|
||||
# $Revision$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 2001/09/23 01:21:15 kueller
|
||||
# Initial revision
|
||||
#
|
||||
# Revision 1.1.1.1 2001/08/24 16:18:07 kueller
|
||||
# AddOns fuer NIS Server
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# 192.168.0 255.255.255.0
|
||||
# 172.16 255.255.0.0
|
||||
# 10 255.0.0.0
|
||||
|
38
init/genpkg
Normal file
38
init/genpkg
Normal file
@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
#Automatische Generierung von glibc
|
||||
#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
#$Author$
|
||||
#$Date$
|
||||
#$Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.2 2001/10/17 08:48:59 kueller
|
||||
#Rechtekorrektur für initscript
|
||||
#
|
||||
#Revision 1.1.1.1 2001/09/23 01:21:15 kueller
|
||||
#Neustart wg. Datenverlust
|
||||
#
|
||||
#Revision 1.1.1.1 2001/08/24 16:18:07 kueller
|
||||
#AddOns fuer NIS Server
|
||||
#
|
||||
#
|
||||
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
mkdir etc/init.d/rc{0,1,2,3,4,5,6}.d
|
||||
cd etc/init.d
|
||||
chmod 755 ypserver
|
||||
for i in 0 1 2 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../ypserver K86ypserver
|
||||
cd ..
|
||||
done
|
||||
for i in 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../ypserver S12ypserver
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
30
var/yp/securenets
Normal file
30
var/yp/securenets
Normal file
@ -0,0 +1,30 @@
|
||||
#
|
||||
# securenets This file defines the access rights to your NIS server
|
||||
# for NIS clients. This file contains netmask/network
|
||||
# pairs. A clients IP address needs to match with at least
|
||||
# one of those.
|
||||
#
|
||||
# One can use the word "host" instead of a netmask of
|
||||
# 255.255.255.255. Only IP addresses are allowed in this
|
||||
# file, not hostnames.
|
||||
#
|
||||
# Always allow access for localhost
|
||||
# (c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
# $Author$
|
||||
# $Date$
|
||||
# $Revision$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.1 2001/09/23 01:21:15 kueller
|
||||
# Initial revision
|
||||
#
|
||||
# Revision 1.1.1.1 2001/08/24 16:18:07 kueller
|
||||
# AddOns fuer NIS Server
|
||||
#
|
||||
#
|
||||
|
||||
255.0.0.0 127.0.0.0
|
||||
|
||||
# This line gives access to everybody. PLEASE ADJUST!
|
||||
0.0.0.0 0.0.0.0
|
Loading…
Reference in New Issue
Block a user