Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Does your /etc/yp.conf look like:
ypserver my.server.com
mark
Quote:
Originally Posted by linian
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.
I have written IP address instead of name in /etc/yp.conf.
So it looks like:
ypservers xxx.xx.xx.xxx
Hi gkilbur1,
/etc/nsswitch.conf has:
passwd: compat
group: compat
shadow: compat
netgroup: nis
I wrote: 'compact'in my question, which was typographical error in the question.
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 running)
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.
Then I blocked that client to access ther server by using a firewall on the server. Then I again got message:
No such map passwd.byname. Reason: Cannot communicate with portmapper.
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.
One more thing
There is no directory with the nisdomainname in /var/yp of clients.
But there is a directory with the name of nis domain name in the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.