NIS client problem

Hi,

I have 4 machines(M0,M1,M2,M3) on a LAN. I have used M0
as NIS server and others as NIS clients.

When I give command:
ypcat passwd on server, I do not get any error.
But when I get the same command on clients, I get
message:

No such map passwd.byname. Reason: Internal NIS error.
____________________________________________________
/etc/defaultdomain has nisdomainname.
/etc/yp.conf has the NIS server IP address, which is
also present in the /etc/hosts.

/etc/nsswitch.conf has:
passwd: compact
group: compact
shadow: compact
netgroup: nis

I added: +:::::: to /etc/passwd, +::: to /etc/group,
and +:::::::: to /etc/shadow.

/etc/default/nis has:
NISSERVER=false (for clients)____________________________________________________

I started /etc/init.d/portmap and then /etc/init.d/nis

I do not know what else to do. Please help.

Thanks

No votes yet

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

no idea, but {:-)

If NIS is anything like nfs, you might need to totally stop all servers/parts, then start them again and then do the same on all the clients.

Are there logs you can look at for extra ideas?

Apps, but is must be 15 years since I last used NIS.

Hi terryc200607, Thanks for

Hi terryc200607,
Thanks for the reply.

Do you mean that I should reboot the server and then reboot the client??
Okay, I will do that. Meanwhile I want to share what I did so far:

I think that there could be two problems:
1. NIS Client is some how not communicating with NIS server.
2. NIS database is not being updated.

To verify the first doubt, I disconnected the NIS server from
the switch and then gave command 'ypcat passwd'.
The result was:
No such map passwd.byname. Reason: Cannot communicate with portmapper.
(I typed rpcinfo -p localhost and found that portmap was runner)
Then I conneced the ethernet jack of server to the switch and typed again: ypcat passwd.
This time I got the different message:
No such map passwd.byname. Reason: Internal NIS error.

This implies that there some sort of connection between client and the server, but may be server is not trasferring the required information to the client.

I cd to /var/yp on NIS server and typed make. This updated data on the NIS server.

(I am using Debian sarge)

I do not know how to carry out further diagnosis.

Please help. Thanks

EVENTUALLY GOT IT

EVENTUALLY GOT IT WORKING.
THAnks for every one's help

What was the final result?

Please post what the problem turned out to be and what you did to fix it.

May help others.

Re: NIS client problem (solution?)

terryc200607 makes a great point.

Don't worry linian, if it was something really brainless we'll only pick on you a little bit. :-)

Seriously, posting the solution -- brainless or not -- will make great searchable material that'll help others out.

Solution

Very simple. But very tricky.

In ypserv.securenets, there is a special way to allow a host.
That is :

host 10.0.0.1

I had written only 10.0.0.1 ( as we do in /etc/hosts.allow)

This word "host", cost me a lot of time.

All the best.

Thanks for your interest.

Syndicate content