Setting up NIS
From K12LTSP Wiki
- set domainname in
/etc/sysconfig/networkand in/etc/yp.conf. Ensure the domain name is set. Typedomainname $domainnamewhere$domainnameis the name of your NIS domain - Configure
yp.conf; typically setting it todomain $domainname broadcastis sufficient - Ensure service is set to run by typing
/sbin/chkconfig --levels 345 ypbind on - Restart NIS by typing
/etc/rc.d/init.d/ypbind restart - Ensure
/etc/sysconfig/netowrkhas aNISDOMAIN=$domainnameline to identify the domainname
The following is a good how-to for running NIS on Linux: http://www.redhat.com/mirrors/LDP/HOWTO/NIS-HOWTO/index.html
Confirm YP services are running:
/etc/rc.d/init.d/ypserv status /etc/rc.d/init.d/ypxfrd status /etc/rc.d/init.d/yppasswd status
Once you've ensured everything is running as expected restart the ypbind daemon and it should work. If you're unconcerned with failover, you can modify /etc/yp.conf on the clients to go directly to your NIS server IP address:
domain $domainname $ipaddress
where $ipaddress is the IP address of your NIS server.
