JAVA SCRIPT

RH 253: HOW TO CONFIGURE NIS SERVER

        NIS SERVER

1. yum install ypserv -y
2. nisdomainname RHCSS
3. vim /etc/sysconfig/network
   NISDOMAIN=RHCSS

4. service network restart
5. vim /etc/exports
   /home   *(rw,sync)

6. service portmap restart
7. service nfs restart
8. service ypserv restart
9. cd /var/yp
10. /usr/lib/yp/ypinit -m
 



            NIS CLIENT

1. umount /home
2. comment home-dir line in /etc/fstab
3. authconfig-tui      //Provide your nisdomain and nisservers ip
4. ypwhich      ->shows niservers hostname/ip
5. vim /etc/auto.master
   /home   /etc/auto.misc

6. /etc/auto.misc
   u1    -fstype=nfs   192.168.0.82:/home/u1   //Login as u1
   *     -fstype=nfs   192.168.0.82:/&        //Login as any user

7. service autofs restart
8. Log out and login as u1 user.








If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!

No comments:

Post a Comment