Setting Up an NIS Server

Setting up an NIS server involves the following steps:

  1. Set a domain name for NIS using domainname.

  2. Edit the ypMakefile, which identifies which databases to build and what sources to use in building them.

  3. Copy the ypMakefile to /var/yp/Makefile.

  4. Run make from the /var/yp directory, which builds the databases and initializes the server.

  5. Start ypserv, the NIS server daemon.

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.