############# To configure NIS Domain. #############
TO NFS Configuretion
1)To configure NFS>
#vim /etc/exports
/home *(rw,sync)
2)To restart the service.
#service portmap restart
#service nfs restart
3)To check the export directory.
#exportfs -rav
1)to configure Hostname & nisdomainname.
#vim /etc/sysconfig/network
HOSTNAME=station1.example.com
NISDOMAINNAME=example.com
HOSTNAME station1.example.com
NISDOMAINNAME example.com
2)To restart the service.
#service network restart
3)TO configure the yp.conf file.
#vim /etc/yp.conf
domain NISDOMAIN server HOSTNAME
domain example.com server server2.example.com
3)To configure the NIS server.
# cd /var/yp/
#/usr/lib/yp/ypinit -m
ctrl+d
(yes)
4)Restart the services.
#service portmap restart
#service nfs restart
#service ypserv restart
#service yppasswdd restart
5)Create user & update the NIS database file
#useradd vikas
#passwd vikas
#cd /var/yp/
#make
*To Client side configuration.
Install ypbind package.
1)To configure the nis server on client.
#authconfig-tui
enable[*] Use NIS
Domain: example.com
Server: station1.example.com
OK
2)Restart the service.
#service ypbind restart
3)To check.
#ypwhich
4)Mount the partion.
#mount (server ip):/(Servers home partition) /home
#mount 10.0.0.1:/home /home
5)To login by server user From client side.
############### END ################
By Laxman D. Kadam
Ph. No. 9967413230
email:-vikasjk3@gmail.com