NIS client configuration
  • Clients query the NIS server every time they need information.
  • NIS client files come with the NIS package
    
    apt-get install nis
    

  • To see if a client can access the NIS services on the NIS server, for example node18, run rpcinfo on the client host:
    
    rpcinfo -p node18 | grep yp
    

  • Put the NIS domain name into /etc/defaultdomain
  • In file /etc/yp.conf, include info about the NIS domain and server, for example:
    
    domain unisys server node18
    
    Make sure the server host name and IP are included in file /etc/hosts.
  • Remove all the accounts and groups in /etc/passwd, /etc/shadow, and /etc/group, which are supposed to be inquered from the NIS server.
  • Modify /etc/passwd and /etc/group as follows: in the end of /etc/passwd, add
    
    +::::::
    
    in the end of /etc/group, add
     
    +:::
    

  • In file /etc/nsswitch.conf, there should be the following entries:
      
    passwd:         compat 
    group:          compat 
    shadow:         compat 
    
    hosts:          files dns
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    

  • In file /etc/default/nis
    
    NISCLIENT=true
    

  • Start ypbind:
    
    /etc/init.d/nis start
    


    Previous Pageprevious First Pagetop Next Pagenext