nis server issue
hi,
i have setup NIS SERVER. when i try to connect from my another PC with the command service ypbind start. it search for NIS domain and server but it's FAILD.
I m using RHEL3 ES edition.
Here all configration steps which i have done.
after adding NISDOMAIN=NIS-HOME-NETWORK under /etc/sysconfig/network file. and also under /etc/yp.conf file i have setup 'ypserver 127.0.0.1 option.
after that i have run this command.
[root@mail root]# /usr/lib/yp/ypinit -m
At this point, we have to construct a list of the hosts which will run NIS
servers. mail.netbeez.net is in the list of NIS server hosts. Please continue to add
the names for the other hosts, one per line. When you are done with the
list, type a <control D>.
next host to add: mail.netbeez.net
next host to add:
The current list of NIS servers looks like this:
mail.netbeez.net
Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/NIS-HOME-NETWORK/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/NIS-HOME-NETWORK'
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
Updating group.bygid...
Updating hosts.byname...
Updating hosts.byaddr...
Updating rpc.byname...
Updating rpc.bynumber...
Updating services.byname...
Updating services.byservicename...
Updating netid.byname...
Updating protocols.bynumber...
Updating protocols.byname...
Updating mail.aliases...
gmake[1]: Leaving directory `/var/yp/NIS-HOME-NETWORK'
mail.netbeez.net has been set up as a NIS master server.
Now you can run ypinit -s mail.netbeez.net on all slave server.
[root@mail root]#
Then i have started all require services like ypserv,portmap,yppasswdd.here is the ouput.
[root@mail root]# rpcinfo -p localhost
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100009 1 udp 644 yppasswdd
600100069 1 udp 934 fypxfrd
600100069 1 tcp 936 fypxfrd
100004 2 udp 954 ypserv
100004 1 udp 954 ypserv
100004 2 tcp 957 ypserv
100004 1 tcp 957 ypserv
100007 2 udp 1006 ypbind
100007 1 udp 1006 ypbind
100007 2 tcp 1009 ypbind
100007 1 tcp 1009 ypbind
100011 1 udp 784 rquotad
100011 2 udp 784 rquotad
100011 1 tcp 787 rquotad
100011 2 tcp 787 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 1031 nlockmgr
100021 3 udp 1031 nlockmgr
100021 4 udp 1031 nlockmgr
100021 1 tcp 1034 nlockmgr
100021 3 tcp 1034 nlockmgr
100021 4 tcp 1034 nlockmgr
100005 1 udp 802 mountd
100005 1 tcp 805 mountd
100005 2 udp 802 mountd
100005 2 tcp 805 mountd
100005 3 udp 802 mountd
100005 3 tcp 805 mountd
391002 2 tcp 1042 sgi_fam
[root@mail root]#
Then i have added one user iwth niuser and try following command. it look like wokring nice.
[root@mail root]# ypmatch niuser passwd
niuser:$1$enDDYsIF$kdAO7tdodPqzrnQ6y/iSK/:1025:1025::/home/niuser:/bin/bash
[root@mail root]#
that's all for NIS SERVER i have setup.
now move to client side. ...
i have run 'authconfig' and put NISDOMAIN and NISSERVER name.
domain NIS-HOME-NETWORK server 192.168.100.10
i have verify under /etc/yp.conf.
then i tried to start the service with command 'service ypbind start', it looks for NIS SERVER and get FAILD. also i have started 'portmap service' as what i did on NISSERVER.
i do notwhy it;'s not connect to NIS SERVER. can anyone guide me hoew to slove this issue.
one mor, if i try with ypcat passwd, nothing apprear. so can not able to guess it.
I have restarted portmap service and ypbind,yppasswd services more then 2 times . but still not wokring .
also. i have STOP the FIREWALL on both the PC.[server and client]
please help me to slove this issue, as i m preparing for RHCE exam it IMP for me.
Thank you
-/Hitesh
|