|
Configuration for NIS client
|
| After building NIS Server, Configure on clients in order to share users' accounts. |
|
[root@www ~]# vi /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=www.server-linux.info GATEWAY=192.168.0.1 # add at the bottom NISDOMAIN=server-linux.info [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 # 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 at the bottom domain server-linux.info server nfs.server-linux.info [root@www ~]# vi /etc/nsswitch.conf passwd: files nis # line 33: add shadow: files nis # add group: files nis # add #hosts: db files nisplus nis dns hosts: files dns nis # add [root@www ~]# chkconfig ypbind on [root@www ~]# chkconfig portmap on [root@www ~]# shutdown -r now www login: cent # user name on NIS Password: # password Last login: Sun Mar 11 22:02:12 on tty1 [cent@www ~]$ # just logined [cent@www ~]$ nfs.server-linux.info [cent@www ~]$ ypcat passwd cent:x:500:500::/home/cent:/bin/bash [cent@www ~]$ # change password Changing NIS account information for cent on nfs.server-linux.info. Please enter old password: # current password Changing NIS password for cent on nfs.server-linux.info. Please enter new password: # new password Please retype new password: The NIS password has been changed on nfs.server-linux.info. |