NIS最初由Sun 公司开发,用于UNIX系统的集中管理。如今NIS已经成为了业界标准,所有主流的UNIX系统,如HP-UXLinuxAIX等都支持NISNIS是一个集中存放系统管理文件的仓库。它可以集中管理文件,当网络增长时有较好的扩张性,提供了通过数据库访问设施,可以向网络上的所有主机分发信息,如PasswdGroups文件所包含的信息。用户可以通过NIS向网络上的所有计算机同步/etc/hosts/中的计算机信息 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

NIS认证Client端配置具体步骤

1)  首先要保证Client能加入NIS  Domain

S etup——》Authentication Configulation——》选中Use NIS

(Next)——》写入域名和服务器地址值——》vim  /etc/sysconfig/network(编辑使其长久有效)

2)  检查定义所属域

     

     

3PRC远程过程调用,看RPC是否开放

   R pcinfo  -p  localhostservice  portmap  statusnetstat  -tunlp  |  grep   portmap命令均可

  

4)  vim  /etc/nsswitch.conf(查看信息)

 

已经出现了passwd:  files  nis

           P asswd:   files  nis

           G roup:    files  nis

           H osts:    files  nis  dns

      S ervice  ypbind  status查看ypbind的状态是否已启动

  

5)  Automounter自动挂载器,当客户端需要的时候它会自动挂载,之后开始登陆、认证。

S howmount  -e  192.168.0.254 (先查看服务器的共享资源

编辑vim  /etc/auto.mastervim  /etc/auto.misc配置文件来实现需要的时候他就会自动挂在的功能,service  autofs  restart

并重启使之生效

V im   /etc/auto.master(其中必须写入真实路径)

添加(/home/guests       /etc/auto.misc

V im   /etc/auto.misc

添加(*     -rw,soft,intr    192.168.0.254:/home/guests/&

S ervice  autofs  restart(并重新启动服务)

C d  /home/guests/(切换到guests用户,进行登录验证)

L s

S u  -  guests2002(切换到用户看能否自动挂载)

S u  -  guests2003

C d   /home/

L s

C d  guests/

L s   (查看已出现guests2002guests2003)