- # configure the shadow, passwd and group files:
echo +:::::::: >> /etc/shadow
echo +:::::: >> /etc/passwd
echo +::: >> /etc/group
- # set the identification string of your nis domain:
echo nisServerIdentificationString > /etc/defaultdomain
- # set the ipaddress of the nis master (remember that nis does not perform dns queries):
echo ypserver your.nis.server.domain.org > /etc/yp.conf
- # install the nis package:
sudo apt-get install -y nis
- # start the nis daemon:
sudo /etc/init.d/nis restart
- # you can now test whether the stuff works by requesting the possible userids which your nis server provides:
ypcat passwd