#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
NISDOMAIN=mydomain
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 192.168.122.77
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
/home 192.168.122.0/24(rw,sync)
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 192.168.1.100:/home/&
Step 4:
/sbin/chkconfig autofs on
/sbin/service autofs start
Reference






