There are some good manuals around, but the key thing is
- when installing via
apt-getmake sure to specify the domain name of the NIS master- If things don’t work well, use
apt-get purge nisto remove and reinstall nis to setup your nis domain.
- If things don’t work well, use
- setup the ypserver in
/etc/yp.conf- ypserver [full address]
- add nis to the appropriate lines in
/etc/nsswitch.conf- passwd, group, shadow, hosts
- Finally use the
yptestto check if things are working. - Xenial has an issue where the rpcbind service does not start up properly. I used the following command to set rpcbind to start at bootup.
-
# systemctl add-wants multi-user.target rpcbind.service- This solution was found on askubuntu
-
In our setup, make sure not to add the kaist.ac.kr suffix!!
Step is:
- apt install nis
- check with
yptest - If it works, open
/etc/nsswitch.confand addnisto the end ofpasswdgroupshadowandhosts - if you’re on Xenial (16.04) follow step 5 above.