加入到这个域中,并指明域服务器的ip
[root@cj ~]# setup

选中 use nis,点击next

指明我们的域和域的ip

选中ok
他就自动启动了
挂载域中家目录
[root@cj ~]# vim /etc/auto.master
/nishome /etc/auto.nis --timeout=6

生成配置文件
[root@cj ~]# cp /etc/auto.master /etc/auto.nis
编辑
[root@cj ~]# vim /etc/auto.nis
* -rw,soft,intr 192.168.102.30:/nishome/&

创建用户家目录,修改权限
[root@cj ~]# mkdir /nishome
[root@cj ~]# chmod 777 /nishome
重启该服务
[root@cj ~]# service autofs restart

测试

可以看到,本地并没有user3的帐号,但是,能够认证。
