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 the difference between fork and thread ? and parent and child process in fork system call?

3 Answers   Satyam,


What text filter can you use to display a binary file in octal numbers?

1 Answers  


expalin the process of kickstart installation?

1 Answers   HCL, IBM,


how do you configure linux system as a router?

4 Answers   HCL,


how u use the iptable firewall to restrict ssh,telnet,ftp

9 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  


what restrict telnet for root itself but allow for other user

3 Answers   CA,


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 ?

0 Answers   Oracle,


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

0 Answers  


What is the use of DNS Server? Name other servers works same as like DNS?

2 Answers  


You want to create a compressed backup of the users' home directories. What utility should you use?

5 Answers  


How to convert an IP address to a Domain name using Unix ?

2 Answers   Verse Innovation,


Categories