Configuring a nis client

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