How to Create NIS Server And NIS Client? Explain With Example?

Answer Posted / rajkumar

SERVER SIDE:
REQUIRED PACKAGES:ypserv ....rpm,ypbind...rpm,yptools...rpm
Configuration file :/var/yp/make
Service:yppasswd,ypserv

Server side Configuration:...
Install above rpms..and check NIS DOMAIN NAME
type nisdomainname
Temparary:#nisdomainname raj.com
if you want to assign permanently
#vi /etc/sysconfig/network
NISDOMAINNAME =raj.com
Open Configuration file:#vi /var/yp/make
Check no 23 line no remove#(aash)
Restart the services:
Services portmap restart
Service yppasswd restart
Service ypserv restart
To update the usergroup datebase files to the NIS Server
#/usr/lib/yp/ypinit -m
press ctrl+d at the next host to add colon
Create the users and give the password:
#useradd raj
#passwd raj
To update the modifications to nis server:
#cd /var/yp
#make
Configure the NFS Service:
Install the these packages:
#rpm -ivh nfs* ..force - aid
#vi /etc/exports
/home 192.168.0.0/255.255.255.0(rw,sync)
save above.
Restart the portmap service and nfs service
#service portmap restart
#service nfs restart


CLIENT SIDE CONFIG OF NIS:
CLIENT SIDE REQUIREMENT PACKAGES:
ypbind ..rpm,yptools..rpm
install above rpms.
Configure the Domain Name:
#nisdomainname raj.com
perminently go to the vi /etc/sysconfig/network
NISDOMAINNAME =raj.com
BIND WITH SERVER:
#authconfig-tui
Select NIS option..next..put NIS Server ipaddress..ok
To check server name#ypwhich
MOUNT TO THE SERVER HOME DIRECTORY WITH LOCAL DIRECTORY:
#mount 192.168.0.1:/home /home

*Now login as a user raj and password.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ext3 and ext4?

2011


Why is it suggested to disable journalism in ext4 filesystem?

3062


What are the differences between FTP , NFS , SAMBA servers explain separately.

707


why /etc/shadow file do not have any permission ?

1049


i installed clustering packages.When i try to run it getting LUCI error...what is it..??

1953






What is Hard mount and soft Mount?

1364


what is difference between  TFTP abd FTP?

1613


As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.

1086


How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples

1337


How to Trouble shoot performance issue in RHEL administration ? please give to one example

1634


I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers

1504


1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?

2292


This question is belong to linux support. "one of my customer told to me, my application is getting slow response". how to resolve the issue. what are the steps you will follow to resolve the issue.

1463


what is the gate of ftp server in redhat linux?

1443