View Full Version : Setting up NIS client
killjoyce
1st February 2005, 09:22 PM
Major newbie here, playing with FC3.
I've set up the NIS server, everything looked fine.
Now trying to set up NIS clients. try to start ypbind and get this error:
ypbind failed. The error was: Binding to the NIS domain: [ OK ]
Listening for an NIS domain server....................[ OK ]
[FAILED]
A few people have told me to check that the "ports are open".
WHICH ports do I check? I'm a little confused.
Thanks for your help!
-kj
Jman
2nd February 2005, 05:35 AM
netstat -l | less will show currently listening servers.
Apparently rpcinfo -p will tell you the port number (http://www.linuxhomenetworking.com/linux-adv/nis.htm) as well.
killjoyce
2nd February 2005, 06:24 PM
netstat -l | less will show currently listening servers.
Apparently rpcinfo -p will tell you the port number (http://www.linuxhomenetworking.com/linux-adv/nis.htm) as well.
The linuxhomenetworking link you added was the exact one I used to set up the server and clients. HOwever when I got to the NIS Client setup and did authconfig, that was when the error came up listening for the domain server
mselvam
29th June 2005, 09:29 PM
In my case i gave the domain name and server name at the time of installation. But ypbind is missing in the /etc/rc.d/init.d directory.
can any one guide about what could have gone wrong.
yp.conf is in tact
meena
mselvam
30th June 2005, 05:52 AM
./ypbind start
Binding to the NIS domain: [ OK ]
Listening for an NIS domain server.
[root@west init.d]# su mselvam
[mselvam@west init.d]$ pwd
/etc/rc.d/init.d
[mselvam@west init.d]$ cd /home/mselvam
/home/mselvam: No such file or directory.
[mselvam@west init.d]$ who am i
root pts/1 Jun 29 13:07 (:0.0)
i again tried one more time......
mselvam@west init.d]$ su mselvam
Password:
[mselvam@west init.d]$ pwd
/etc/rc.d/init.d
[mselvam@west init.d]$ cd /home/mselvam
/home/mselvam: No such file or directory.
[mselvam@west init.d]$
I am able to cd /home/mselvam, in other machines connected to the NIS server. Directory is physically available
telnet 47.80.18.102
Trying 47.80.18.102...
Connected to gracie1 (47.80.18.102).
Escape character is '^]'.
Red Hat Linux release 7.3 (Valhalla)
Kernel 2.4.18-5 on an i686
login: mselvam
Password:
Last login: Mon May 2 10:24:58 from isdlab223sj
[mselvam@gracie ~]$ cd /home/mselvam
[mselvam@gracie ~]$ ls i*
include.tar ip_fil4.1.8.tar* ipsend.tar*
can anyone suggest where i should further look?
meena
montish
21st July 2006, 01:27 PM
Major newbie here, playing with FC3.
I've set up the NIS server, everything looked fine.
Now trying to set up NIS clients. try to start ypbind and get this error:
ypbind failed. The error was: Binding to the NIS domain: [ OK ]
Listening for an NIS domain server....................[ OK ]
[FAILED]
A few people have told me to check that the "ports are open".
WHICH ports do I check? I'm a little confused.
Thanks for your help!
-kj
Try out disabling the firewall before deciding on to which port ....
service iptables stop
Now try to login to the NIS server...
It should work...
bye
ibbo
21st July 2006, 01:36 PM
I beleive like NFS, YP uses random ports when it starts up. So trying to allow connections from these always fails.
So you have two options.
1, edit you firewall rules to allow all connections from the subnet (192.168.0.0/24)
OR
You can edit /etc/sysconfig/network and append the following
OTHER_YPBIND_OPTS="-p 833"
YPSERV_ARGS="-p 834"
YPXFRD_ARGS="-p 835"
Which will then bind YP to those ports (each time). You can then punch your hole in the firewall to allow connections on those ports. Of course you can swap the ports if you choose.
Ibbo
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.