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 |
What is Hard mount and soft Mount?
I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers
What is the name and path of the main system log?
What is the difference between ext3 and ext4?
how to install linux OS? pls send step by step
What is the difference between Telnet and SSH?
how do i check which package has installed some command suppose ls , mkdir or whatever ???
How can i recover the linux system after it was crashed by step by step process..
How to Create NIS Server And NIS Client? Explain With Example?
What is the difference between an argument and an option/switch?
Give a Linux shell command to find all files in a directory which contain ip addresses.
What are the differences between FTP , NFS , SAMBA servers explain separately.