To check if we can actually talk to an NIS server, we can use the ypcat command:
ypcat passwd
This should return the NIS password map, assuming that NIS is properly configured and enabled, and the NIS server is running.
If this fails or if NIS is not configured, we can use the extra options for ypcat, -d for domain and -h for hostname, so it could look something like below:
ypcat -d example.com -h 192.168.0.0 passwd
If this still fails to return the NIS password map, you might want to look into your network configuration or the NIS server.
ypcat passwd
This should return the NIS password map, assuming that NIS is properly configured and enabled, and the NIS server is running.
If this fails or if NIS is not configured, we can use the extra options for ypcat, -d for domain and -h for hostname, so it could look something like below:
ypcat -d example.com -h 192.168.0.0 passwd
If this still fails to return the NIS password map, you might want to look into your network configuration or the NIS server.
Comments