Operating System - Linux
1829068 Members
2652 Online
109986 Solutions
New Discussion

Re: setting up nis red hat

 
SOLVED
Go to solution
Scott_14
Regular Advisor

setting up nis red hat

Hi:

I am tring to setup a NIS Master on a Red Hat server.
I can run ypinit -m, and it seems to create the maps ok.
However when I run ypcat I get an error:
ypcat passwd
No such map passwd.byname. Reason: Can't bind to server which serves this domain

can somone offer me some help?

thank you.

5 REPLIES 5
K.C. Chan
Trusted Contributor
Solution

Re: setting up nis red hat

Did you make sure ypserv, ypbind, and yppasswd are running? What does domainname returns? Could you clearify if you using one server only. It sounds like you doing ypinit -m and then ypcat on the same server, if you need to set up the NIS client on the server as well so that it can bind to itself, thus ypcat will work properly.
Reputation of a thousand years can be determined by the conduct of an hour
Huc_1
Honored Contributor

Re: setting up nis red hat

The best help I found is in the following.

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html

Have a read, and keep us informed with progress.

J-P

Smile I will feel the difference
Huc_1
Honored Contributor

Re: setting up nis red hat

Forgot this link in previous

http://www.europe.redhat.com/documentation/HOWTO/NIS-HOWTO/index.php3

J-P
Smile I will feel the difference
K.C. Chan
Trusted Contributor

Re: setting up nis red hat

scott,
what does your yp.conf and ypserv.conf file looks like? Make sure yp.conf file points to your NIS master and that your domainname in the conf file is set properly. e.g:
domain server
ypserver

The conf file for ypserv.conf is straight forward. Just read the instruction in there. I hope this helps.
Reputation of a thousand years can be determined by the conduct of an hour
Scott_14
Regular Advisor

Re: setting up nis red hat

THanks for all the info, I did find the links earier, beleive it or not, a simple reboot took care of it. My guess is you all were correct the ypbind, was not running.
Well, its been awhile since I delt with nis, so its been a good 'flash back' learning experience again.

thank you.

scott