# Ubuntu Hardy and NIS Server

Hi,

here is a walkthrough to set up a NIS server under Ubuntu Hardy, because the standard configuration is only for clients.

apt-get install nis
NIS domain: _be creative_ :-)


Then wait till the ypbind search is over (it tries very hard to find a server…) otherwise the package is not completely installed.

In the mean time, you can prepare the server.

/etc/yp.conf

ypserver 127.0.0.1


/etc/default/nis

NISSERVER = master
NISCLIENT = false


/etc/ypserv.securenets

# This line gives access to everybody. PLEASE ADJUST! Adjusted! ;-)
255.255.255.0         192.168.1.0


When the installation is complete, you can proceed with the following steps:

/usr/lib/yp/ypinit -m
/etc/init.d/nis restart


Congratulations, your NIS server is now running! :-)

Bye, Sven