NavigationUser loginLinux NewsClick the above for your daily dose of Linux news. Food for ThoughtWindows Error: 002 - No error yet ... Spam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
NIS client problemHi, I have 4 machines(M0,M1,M2,M3) on a LAN. I have used M0 When I give command: No such map passwd.byname. Reason: Internal NIS error. /etc/nsswitch.conf has: I added: +:::::: to /etc/passwd, +::: to /etc/group, /etc/default/nis has: I started /etc/init.d/portmap and then /etc/init.d/nis I do not know what else to do. Please help. Thanks |
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.