Setting up NIS

From K12LTSP Wiki

Jump to: navigation, search
  • set domainname in /etc/sysconfig/network and in /etc/yp.conf. Ensure the domain name is set. Type domainname $domainname where $domainname is the name of your NIS domain
  • Configure yp.conf; typically setting it to domain $domainname broadcast is 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/netowrk has a NISDOMAIN=$domainname line 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.

Personal tools