I have set up the client and the server but I do not see how to use NIS.

What I am expecting is to have the same id on both client and server. What happens is that the client has one id and the server has another.

From a client if I run rpcinfo -p and rpcinfo -p nisdomain or ip I see all the necessary processes loaded.

If from the client I run ypmatch user passwd I get the server id which is what I want.

If I putty to the server and use id user I get the same id. If I run id user on the client I get the local id and I was anticipating the server id.

I think I did not do something but I do not know what that is. Can anyone tell me? The obvious has not hit me yet, but since I am quite lost any suggestions would help ...