Friday, June 18, 2010

Configure NIS RHEL 5

NIS Client Server :
-------------------

Server -----------------> client

users(girish,aniket,manoj) client wants to mount home directories of those server users

how?

PACKAGES TO INSTALL : yp-tools , ypbind , ypserv , portmap



Server side configuration :


1) nisdomainname RHCE -- > any name will which u wann to give

2) nisdomainname -- > check nis domain name

3) service ypserv start -- > ypserv started

4) chkconfig ypserv on

5) /usr/lib/yp/ypinit -m -- >initialize nis map

read instructions as given! and peform action!


6) service yppasswdd start

7) /etc/sysconfg/network --> add NISDOMAIN=RHCE

8) Thats It!



Client side :

1) setup

2) authentication

3) select NIS and select USE MD5 , USE SHADOW

4) Next

5) Domain : RHCE
Ip : Server's ip

6) ok and quit

7) Fire up command "ypcat passwd" -- > displays passwd file of remote user that is our server

8) thats it!


Now if u want to mount home directory of user "girish" on ur computer (client)


1) vim /etc/auto.master

- add line below /net

(PLACE where you want to mount on ur pc ex. /rhome/remoteuser) /etc/auto.misc

- save and exit

2) vim /etc/auto.misc

- add line below cd
* -rw,soft,intr serverip:/home/

(now above user u specified whose home directory will be mounted at /rhome/remoteuser on our pc)

No comments:

Post a Comment