see: - /usr/share/doc/nis/nis.debian.howto.gz

install nis.

nis master server

      /etc/init.d/nis stop
      /etc/init.d/nis start

This will start the server (ypserv) and the password daemon (yppasswdd).

Make sure you have a /etc/networks file. Update maps with: /usr/lib/yp/ypinit -m. Configuration file for nis is /var/yp/Makefile.

run "make" in the /var/yp directory to update the NIS maps. Do this daily by a cron-job.

nis client

       /etc/init.d/nis stop
       /etc/init.d/nis start

nis resources

passwd:   compat
group:    compat
shadow:   compat
netgroup: nis

You can also use the + and - characters to include/exclude or change users.