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



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

Answer / 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

More Linux AllOther Interview Questions

What is Hard mount and soft Mount?

0 Answers   Cap Gemini,


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

0 Answers  


What is the name and path of the main system log?

3 Answers  


What is the difference between ext3 and ext4?

0 Answers   IBM,


how to install linux OS? pls send step by step

3 Answers  






What is the difference between Telnet and SSH?

17 Answers   Bayer, KTree,


how do i check which package has installed some command suppose ls , mkdir or whatever ???

8 Answers  


How can i recover the linux system after it was crashed by step by step process..

3 Answers   IBM,


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

1 Answers   Cisco,


What is the difference between an argument and an option/switch?

3 Answers   Wipro,


Give a Linux shell command to find all files in a directory which contain ip addresses.

1 Answers   Amazon,


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

0 Answers  


Categories