Also about the failure in ypbind on NIS master, after I setup the yp.conf file, the failure in “systemctl” was cleared. (For I know that, i.e. on the NIS master, I setup a ypbind as the NIS client on this server.) Then now, I can run “ypwhich -x” on this NIS master and get the passwd and other NIS information.
With the above response, can I assume that the problem is coming from the connection between the NIS master server and other client servers? Since, the ypbind on the local NIS master can get the passwd information from the local ypserv (i.e. not through the router - 10.6.126.1) by ypwhich.
If my above understanding was correct, one more possible firewall (inside the router) might be there. However, I could not log in to the router today. (The router is quite old.)
Yes, they are under 10.6.126.0/24 (which is managed by that router). So, do you mean that even there was a firewall inside the router, it could not influence the communication between two servers?
Router forwards traffic between different subnets. Router is a gateway between subnets. The firewall in the router affects the routed traffic.
If this is a many-in-one home router, then it probably has about four “LAN” ports for wired clients in one subnet. That part of the device is a switch. The routing (and filtering) is between switch and the “WAN” port.
I suspect your Ubuntu 20 client is also failing to ypbind for the same reason as your CentOS 7 client
There appears to be something wrong with your NIS master and rpcbind - if you haven’t already, I suggest you reboot the NIS master and see if that makes a difference ?
Do you mind if I make a comment here ?
You appear to have been trying to get NIS to work for the last three weeks and are seemingly no nearer than when you started. NIS is dead and has been removed from Rocky Linux 9. I take it you require the uidNumber & gidNumbers that NIS can supply, A Samba AD DC, or an LDAP server, or freeipa can supply these. You could have set up any of those and gone on a fortnights holiday by now
Thanks, hortimech. Sorry that I may not be very familiar with the samilar services. NIS is the one we already used. As jlehtone suggested in the above post, there may be some better choices other than NIS. I just see whether there is any way to quickly fix and recover the NIS service. Then, it may involve less change to me. But I understood that using other tools may finally be my best solution for the existing issue.
I don’t think your issue is related to the ypserv install - clients don’t get as far as talking to ypserv - they can’t talk to rpcbind on the server over UDP
As to what the actual problem is, I have now exhausted all my suggestions …
Okay, so I think what you are saying is that if you run ‘getent passwd $USER’ you get something like this returned:
getent passwd fred
fred:*:11104:10513:Fred Bloggs:/home/fred:/bin/bash
The first number is the user ID and the second is his group ID
If that is the case, then it should be pretty easy to setup a Samba AD DC to replace your NIS server. You just need a list of your users (with their IDs & group membership) and a list of your groups (with the groups ID), with that and a bit of scripting, you should be good to go.
That is, if you go down the AD DC route, I cannot help you with freeipa (I do not use it), or ldap (Samba doesn’t recommend using it any more).