Thursday, March 22, 2018

nis master server settings on cloned system

 i need to change nis master server settings on cloned system. don't even ask.  
   
 commands:  
 # domainname <newdomainname>  
 # mv /var/yp/<domainname> to <newdomainname>  
   
 edit:  
 /etc/hosts change <hostname> to <newhostname> ; <ip> to <newip>  
 /etc/conf.d/net change <domainname> to <newdomainname>  
 /etc/yp.conf change <domainname> to <newdomainname>  
 /etc/ypserv.conf   
 /etc/ypserv.securenets  
 /var/yp/ypservers change <hostname> to <newhostname>  
   
 make -C /var/yp  
   
 test:  
 # ypwhich  
 Should return <newhostname>  
   
 # ypcat passwd | grep <username>  
 # ypcat group | grep <groupname>  
 Both should return known results  

No comments: