Go to TogaWare.com Home Page.
GNU/Linux Desktop Survival Guide
by Graham Williams
Google

Setting Up The Master Server


To set up the master NIS server on Caravan (104.13):



  caravan$ wajig install nis

You will be asked to name the nis domain. You can call it anything and later edit it in /etc/defaultdomain. Let's call it ktnet (it has no formal relationship to the network domain name).

In the file /etc/default/nis set NISSERVER=master to identify caravan as the master server.

To restrict who can access you NIS server add your local network number to the file /etc/ypserv.securenets:



  # Restrict to local network
  255.255.255.0 192.168.0.0

The password files on the server do not need to be changed.

Now restart the NIS server:



  $ wajig restart nis

Set up the server:



  # /usr/lib/yp/ypinit -m

You will be asked to list all of your servers (just caravan for now).

This essentially builds the maps from the current password file on caravan. Note that you can't use the nis maps on caravan itself - don't remove the users from caravan's password file!

Copyright © 1995-2006 [email protected]
Contribue and access the PDF Version