/etc/sysconfig/network
NISDOMAIN=nisdomainname |
/etc/hosts
nis_server_ip nis_server_name |
/etc/yp.conf
domain nisdomainname server nis_server_ip |
/etc/sysconfig/authconfig
USENIS=yes |
/etc/pam.d/system-auth
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok 改 password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok nis |
/etc/nsswitch.conf
passwd: files shadow: files group: files hosts: files dns 改 passwd: files nis shadow: files nis group: files nis hosts: files nis dns |
/etc/auto.master
#/misc /etc/auto.misc #/net -hosts +auto.master |
為了讓 autofs 能直接吃 nis server 上的 auto.master 要改 /etc/sysconfig/autofs
#MASTER_MAP_NAME="auto.master" 改 MASTER_MAP_NAME="yp:auto.master" |
NIS Client for CentOS 5.4