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

How does the boot process[init levels] work on Linux? How is it different from Solaris?

3 Answers  


i want some basic level enterview questions can any one can help me in this

1 Answers   TCL,


in linux gui desktop icon was lost how con u back this icons

2 Answers  


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

0 Answers  


1 which file contains information about os wether it's 32 bit or 64 bit os 2 difference between logical block and physical block?? 3 what is the size of logical block and physical block?? 4 daemon for nfs on client end as well as server end??? 5 how to confirm from client end about nfs server sharing?? 6 what contains information about file and directory creating time or modification time??

4 Answers   Oracle,






someone already asked 'what is diff between unix & Linux' can I ask the same but more nuanced...I have 7 years app support of unix, have never seen Linux BUT need to bluff my way through in an interview i e say that I have use Linux. What are the most important things I need to know?

1 Answers  


will u plz send me the complete steps of installation of red hat linux on intel's core 2 duo processor?

1 Answers  


why you are using nis server

2 Answers  


How to trace any process background processing?

5 Answers  


Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.

3 Answers  


How find out drivers of installed devices in linux (RHEL)?

2 Answers  


How do display error messages instantly when command fails?

4 Answers  


Categories