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 |
How to findout, if the user is local user or NIS user in the Linux (RHEL)?
How to check all open ports on linux machine and block unsed ports????????
what are the different types of Backups..?
how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?
What is the use of DNS Server? Name other servers works same as like DNS?
How to apply patch for multiple servers .
What is Hard mount and soft Mount?
what are the steps for Password-less ssh
In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)
Where is standard output usually directed?
How do display error messages instantly when command fails?
what is the difference between semaphore, mutex & spinlock?????