NIS Client2009/06/14 |
Configure on NIS clients in order to share users' accounts. |
[root@www ~]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=www.srv.world GATEWAY=192.168.0.1 NISDOMAIN=srv.world # add the line [root@www ~]# vi /etc/sysconfig/authconfig USEWINBINDAUTH=no USEKERBEROS=no USESYSNETAUTH=no FORCESMARTCARD=no USESMBAUTH=no USESMARTCARD=no USELDAPAUTH=no USELOCAUTHORIZE=no USEWINBIND=no USESHADOW=yes USEDB=no USEMD5=yes USEPASSWDQC=no USELDAP=no USEHESIOD=no USECRACKLIB=yes USENIS= yes # change [root@www ~]# vi /etc/yp.conf # /etc/yp.conf - ypbind configuration file # Valid entries are # # domain NISDOMAIN server HOSTNAME # Use server HOSTNAME for the domain NISDOMAIN. # # domain NISDOMAIN broadcast # Use broadcast on the local net for domain NISDOMAIN # # domain NISDOMAIN slp # Query local SLP server for ypserver supporting NISDOMAIN # # ypserver HOSTNAME # Use server HOSTNAME for the local domain. The # IP-address of server must be listed in /etc/hosts. # # broadcast # If no server for the default domain is specified or # none of them is rechable, try a broadcast call to # find a server. # # add the line domain srv.world server dlp.srv.world [root@www ~]# vi /etc/nsswitch.conf passwd: files nis # line 33: add shadow: files nis group: files nis [root@www ~]# chkconfig ypbind on [root@www ~]# chkconfig rpcbind on [root@www ~]# shutdown -r now www login: fedora # a user on NIS Password: [fedora@www ~]$ # logined [fedora@www ~]$ dlp.srv.world [fedora@www ~]$ ypcat passwd fedora:x:501:501::/home/fedora:/bin/bash nfsnobody:x:4294967294:496:Anonymous NFS User:/var/lib/nfs:/sbin/nologin [fedora@www ~]$ # change password Changing NIS account information for fedora on dlp.srv.world. Please enter old password: # current password Changing NIS password for fedora on dlp.srv.world. Please enter new password: # new password Please retype new password: The NIS password has been changed on dlp.srv.world. |
Sponsored Link |