Configure NIS Client2010/05/30 |
Configure on NIS clients in order to share users' accounts. |
[root@www ~]# yum -y install ypbind rpcbind [root@www ~]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=www.srv.world # add at the bottom NISDOMAIN=srv.world [root@www ~]# vi /etc/sysconfig/authconfig USENIS= yes # line 19: change [root@www ~]# vi /etc/yp.conf # add at the bottom domain srv.world server dlp.srv.world [root@www ~]# vi /etc/nsswitch.conf passwd: files nis # line 33: add shadow: files nis # add group: files nis # add [root@www ~]# chkconfig rpcbind on [root@www ~]# chkconfig ypbind on [root@www ~]# shutdown -r now www.srv.world login: fedora # user on NIS Password: # password Last login: Sun May 30 03:42:33 on ttyS0 [fedora@www ~]$ # logined [fedora@www ~]$ dlp.srv.world [fedora@www ~]$ ypcat passwd fedora:x:500:500::/home/fedora:/bin/bash nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin |
Sponsored Link |