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 |
Without Using $date -dyesterday. How I get the yesterday's date ?
there are many IPC mechanisms available in Linux ? Which one is best to use and when ?
How to apply patch for multiple servers .
How To Hide the FTP Version?
What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?
How to know what are the packages required for any service? Example: How to know what are the package required for send mail services. using any command it is passable are not?
Why is it suggested to disable journalism in ext4 filesystem?
I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????
What text filter can you use to display a binary file in octal numbers?
what is meant by mysql clustering
How to ""Add"" not replace address to same network card other than the alias way.... ??????
Without using w command how can Iknow that who are users logged in and what they are doing and whether they are idle or running mode?