Starte ich
Code: Alles auswählen
/etc/init.d/nis
Code: Alles auswählen
Starting NIS services: ypserv yppasswdd ypxfrd ypbind [binding to YP server .......... backgrounded]
Eigentlich sollte trotzdem alles laufen:
Code: Alles auswählen
# rpcinfo -p localhost
Program Vers Proto Port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100021 4 tcp 32769 nlockmgr
100024 1 udp 991 status
100024 1 tcp 994 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100005 1 udp 1020 mountd
100005 1 tcp 1023 mountd
100005 2 udp 1020 mountd
100005 2 tcp 1023 mountd
100004 2 udp 851 ypserv
100004 1 udp 851 ypserv
100004 2 tcp 854 ypserv
100004 1 tcp 854 ypserv
100009 1 udp 853 yppasswdd
600100069 1 udp 856 fypxfrd
600100069 1 tcp 858 fypxfrd
100007 2 udp 862 ypbind
100007 1 udp 862 ypbind
100007 2 tcp 865 ypbind
100007 1 tcp 865 ypbind
Code: Alles auswählen
# /etc/init.d/nis start
Starting NIS services: ypbind [binding to YP server .......... backgrounded]
Leider ist er dann immer noch nicht verbunden:
Code: Alles auswählen
# getent passwd
Die beiden Rechner (Debian Testing) sind untereinander pingbar, auch über den Hostname.
Meine Konfiguration auf dem Server:
Code: Alles auswählen
# egrep -v '#' /etc/default/nis
NISSERVER=master
NISCLIENT=false
YPPWDDIR=/etc
YPCHANGEOK=chsh
NISMASTER=
YPSERVARGS=
YPBINDARGS=
YPPASSWDDARGS=
YPXFRDARGS=
Code: Alles auswählen
# egrep -v '#' /etc/defaultdomain
domain.home
Code: Alles auswählen
# egrep -v '#' /etc/yp.conf
ypserver <ip_von_diesem_rechner>
Code: Alles auswählen
# egrep -v '#' /etc/ypserv.conf
* : * : shadow.byname : port
* : * : passwd.adjunct.byname : port
* : * : * : none
Code: Alles auswählen
# egrep -v '#' /etc/ypserv.securenets
host 127.0.0.0
10.10.1.0 10.10.1.255
Code: Alles auswählen
# egrep -v '#' /etc/hosts.allow
portmap: 10.10.1.0/255.255.255.0
mountd: 10.10.1.0/255.255.255.0
ypserv: 10.10.1.0/255.255.255.0
ypbind: 10.10.1.0/255.255.255.0
yppasswdd: 10.10.1.0/255.255.255.0
fypxfrd: 10.10.1.0/255.255.255.0
Konfiguration auf dem Client
Code: Alles auswählen
# egrep -v '#' /etc/nsswitch.conf
passwd: compat nis
group: compat nis
shadow: compat nis
netgroup: nis
hosts: files nis dns wins
networks: files
Code: Alles auswählen
# egrep -v '#' /etc/defaultdomain
domain.home
Code: Alles auswählen
# egrep -v '#' /etc/yp.conf
ypserver <ip_von_dem_server>
Code: Alles auswählen
# egrep -v '#' /etc/default/nis
NISSERVER=false
NISCLIENT=true
YPPWDDIR=/etc
YPCHANGEOK=chsh
NISMASTER=
YPSERVARGS=
YPBINDARGS=
YPPASSWDDARGS=
YPXFRDARGS=