> Eckhard Hoeffner wrote:
>
> > >Ein /etc/init.d/nis start gibt nur aus:
> > >
> > >Starting NIS services: ypserv, yppasswd [usw] ypbind [binding to YP
> > >server ........ backgrounded]
> > Das ist typisch dafür, dass keine Bindung mit dem Server
> > hergestellt werden konnte.
>
> Ja, leider...
>
> > Was sagt denn
> > rpcinfo -u localhost ypserv
>
> program 100004 version 1 ready and waiting
> program 100004 version 2 ready and waiting
Sieht bei unserem Server (potato) genauso aus
>
> > Wie sieht /etc/nsswitch und /etc/domainname aus?
> /etc/nsswitch:
> passwd: compat
> group: compat
> shadow: compat
> hosts: files dns
> networks: files
> protocols: db files
> services: db files
> ethers: db files
> rpc: db files
> netgroup: nis
Sieht bei unsererm Server genauso aus, bei den Clients anders
> /etc/domainname: Habe ich nicht. Stattdessen habe ich eine
> /etc/defaultdomain, die auch im NIS-Startscript abgefragt wird. In der
> steht lediglich "hause" drin, was meine NIS-Domain ist und die wird auch
> beim Starten korrekt angezeigt.
Sorry Fehler von mir /etc/defaultdomain war gemeint
Vieleicht liegt es daran: Bei uns steht am Server:
#/etc/hosts
127.0.0.1 localhost
192.168.10.1 server.scheele.lan server
# /etc/hostname
server
# /etc/defaultdomain
scheele.lan
^^^^^^^^^^^
> Auch wenn ich domainname oder ypdomainname per Hand anlege, hat es keine
> Auswirkungen auf den Fehler...
>
> > Wie sehen die drei files in /etc/yp aus?
>
> /etc/yp.conf:
> ypserver localhost
Ist bei uns am Server völlig auskommentiert,
^^^^^^^^^^^^^^^^^^^^^
also kein serve eingetragen
# ypserver ypserver.network.com
> /etc/ypserv.conf
> * : shadow.byname : port
> * : passwd.adjunct.byname : port
> * : * : none
sieht bei uns genauso aus.
> /etc/ypserv.securenets
>
> 255.0.0.0 127.0.0.0
> 0.0.0.0 0.0.0.0 (dies nur fuer Testzwecke :-) Klappt aber auch
Tja, auch nichts zu entdecken.
Hier noch das init.d-Script
NISSERVER=master
NET="/usr/sbin"
test -f ${NET}/ypbind -a -f /etc/defaultdomain || exit 0
bind_wait()
{
[ "`ypwhich 2>/dev/null`" = "" ] && sleep 1
if [ "`ypwhich 2>/dev/null`" = "" ]
then
bound=""
echo -n "[binding to YP server "
for i in 1 2 3 4 5 6 7 8 9 10
do
sleep 1
echo -n "."
if [ "`ypwhich 2>/dev/null`" != "" ]
then
echo -n " done] "
bound="yes"
break
fi
done
[ "$bound" ] || echo -n " backgrounded] "
fi
}
start ()
{
domainname `cat /etc/defaultdomain`
echo "Setting NIS domainname to: `domainname`"
echo -n "Starting NIS services: "
if [ "$NISSERVER" != "false" ]
then
echo -n "ypserv "
start-stop-daemon --start --quiet \
--pidfile /var/run/ypserv.pid --exec ${NET}/ypserv
fi
if [ "$NISSERVER" = master ]
then
echo -n "yppasswdd "
start-stop-daemon --start --quiet \
--exec ${NET}/rpc.yppasswdd -- -e chsh
echo -n "ypxfrd "
start-stop-daemon --start --quiet \
--exec ${NET}/rpc.ypxfrd
fi
if egrep -q '^(ypserver|domain)' /etc/yp.conf
then
broadcast=""
else
broadcast="-broadcast"
fi
echo -n "ypbind "
start-stop-daemon -b --start --quiet --exec ${NET}/ypbind --
$broadcast
bind_wait
echo
}
stop () {
start-stop-daemon --stop --quiet --oknodo \
--pidfile /var/run/ypbind.pid --exec /usr/sbin/ypbind
start-stop-daemon --stop --quiet --oknodo \
--pidfile /var/run/ypserv.pid --exec /usr/sbin/ypserv
start-stop-daemon --stop --quiet --oknodo \
--exec /usr/sbin/rpc.yppasswdd
start-stop-daemon --stop --quiet --oknodo \
--exec /usr/sbin/rpc.ypxfrd
}
case "$1" in
start)
start;
;;
stop)
stop
;;
reload|force-reload)
start-stop-daemon --stop --quiet --oknodo --signal 1 \
--pidfile /var/run/ypserv.pid --exec /usr/sbin/ypserv
;;
restart)
stop
sleep 2
start
;;
*)
echo "Usage: /etc/init.d/nis
{start|stop|reload|force-reload|restart}"
exit 1
esac
exit 0
--
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.netAttachment:
"
Description: Binary data