commit c686dd88ff388784d6cce16ef4761f3b3db235cd Author: kueller Date: Mon Jan 3 10:48:06 2011 +0000 Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_ypserv@5933 504e572c-2e33-0410-9681-be2bf7408885 diff --git a/etc/init.d/ypserver b/etc/init.d/ypserver new file mode 100644 index 0000000..421e76d --- /dev/null +++ b/etc/init.d/ypserver @@ -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 diff --git a/etc/init/yppasswdd.conf b/etc/init/yppasswdd.conf new file mode 100644 index 0000000..3d093fb --- /dev/null +++ b/etc/init/yppasswdd.conf @@ -0,0 +1,12 @@ +description "If configured, startup rpc.ypxfrd (slave yp server) prozess" +author "Harald Kueller " +version 1.0 +emits none special + +start on yppasswd +stop on stopping ypserv + +console none + +expect daemon +exec /usr/sbin/rpc.yppasswdd -D $PASSPATH diff --git a/etc/init/ypserv.conf b/etc/init/ypserv.conf new file mode 100644 index 0000000..407b109 --- /dev/null +++ b/etc/init/ypserv.conf @@ -0,0 +1,24 @@ +description "If configured, startup ypserver prozess" +author "Harald Kueller " +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 diff --git a/etc/init/ypxfrd.conf b/etc/init/ypxfrd.conf new file mode 100644 index 0000000..2b15d2a --- /dev/null +++ b/etc/init/ypxfrd.conf @@ -0,0 +1,12 @@ +description "If configured, startup rpc.ypxfrd (slave yp server) prozess" +author "Harald Kueller " +version 1.0 +emits none special + +start on started ypserv +stop on stopping ypserv + +console none + +expect daemon +exec /usr/sbin/rpc.ypxfrd diff --git a/etc/locale b/etc/locale new file mode 100644 index 0000000..1651656 --- /dev/null +++ b/etc/locale @@ -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 diff --git a/etc/netgroup b/etc/netgroup new file mode 100644 index 0000000..bc62989 --- /dev/null +++ b/etc/netgroup @@ -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,,) diff --git a/etc/netmasks b/etc/netmasks new file mode 100644 index 0000000..b222490 --- /dev/null +++ b/etc/netmasks @@ -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 + diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..d3aeeb7 --- /dev/null +++ b/init/genpkg @@ -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 diff --git a/var/yp/securenets b/var/yp/securenets new file mode 100644 index 0000000..d3d4e10 --- /dev/null +++ b/var/yp/securenets @@ -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