NIS Server and Client Setup

#Setup Tested/performed using  Fedora 9

#NIS server setup steps for LUX lab NAD810

#Author Varinder Singh Lux@seneca Feb 15th 2009

NIS Server

Server side

Step 1. Package install :

yum install ypserv

Step 2:

/sbin/chkconfig/ypserv on

/sbin/chconfig/ypxfrd on

/sbin/chconfig/yppasswdd on

step 3.Edit /etc/sysconfig/network


step 4. /usr/lib/yp/init -m

(if this step is skkiped ypbind at client side wont start)

during the command if at any step you asked for inpute, then just

press <ctrl -D>

step 5. After configuring NIS server start the following services

/sbin/service ypserv start

/sbin/service ypxfrd start

/sbin/service yppasswdd start

NIS Client Side configuration

Step 1 Package Install

a) yp-tools

b) yp-bind

Step 2:

/sbin/chkconfig ypbind on

/sbin/service ypstart

Step 3. Edit the /etc/sysconfig/network

NISDOMAIN=mydomain (domain name is case sentive)

Step 5. Edit /etc/yp.conf

domain mydomain server

start ypbind

Step 6

Try the following steps to check if the configuration is fine)

#ypwhich (should display NIS server’s name )

#rpcinfo -u <server-name> ypserv

#rpcinfo -u localhost ypbind

Setting the NFS and automounter to mount automatically home dirs

NIS server Side

setup the NFS server and export the /home directory so that the /etc/exports file looks like this


NIS client side

step 1.

Package install autofs

step 2

edit the /etc/auto.master and at the end of file make the following entry

/home /etc/auto.home –timeout 600

Step 3

Edit the /etc/auto.home and enter the following line given below

* -fstype=nfs,soft,intr

Step 4:

/sbin/chkconfig autofs on

/sbin/service autofs start


Red Hat linux by Mark G Sobell


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s