Notes on Configuring a NIS Master and NIS Clients 10-25-2005 I set up the Eagan machines to mimic what EDC had. rhino = NIS Master domain = delphion.com client machines = esearch1, eworker1, eworker2, lizard, skunk, walrus ----------------------------------------------------------------------------- On the NIS master, the default is to take that machine's /etc/passwd and /etc/groups file to create the master file for the NIS cluster. This means that to add or remove an NIS userid, or to change its group memberships, you need to login to the NIS master and use the normal AIX commands to add or change or delete. To set up the master NIS server, as root, 1) Make sure the master's /etc/passwd & /etc/groups file is the way you want. 2) Set the NIS domain via chypdom -B delphion.com 3) Run mkmaster -OPU ----------------------------------------------------------------------------- On each client machine, 1) Set the NIS domain via chypdom -B delphion.com (You can use the domainname command to see what it is now.) This modifies /etc/rc.nfs to set the NIS domain at boot time. 2) Run mkclient -B -S rhino (or mkclient -B -S dind1.edc.delphion.com in EDC) This adds a + line to /etc/passwd & /etc/group and modifies /etc/rc.nfs to properly start the NIS client processes. 3) If this machine has userid entries in its local /etc/passwd file that duplicate what you want kept in NIS, vi /etc/passwd and remove them. 4) Same thing for /etc/group. If there are groups there that you want maintained in NIS, vi /etc/group and delete. 5) For quicker binding to the NIS server(s) and to identify the secondary NIS servers, vi /var/yp/binding/delphion.com/ypservers and put in the IP addresses of your NIS servers. In EDC, this is 10.225.48.109 10.225.48.124 which is dind1 and dind2. 6) If this machine was an AFS client, vi /etc/security/user and change the default: clause from SYSTEM = "AFS OR (AFS[UNAVAIL] AND compat[SUCCESS])" to SYSTEM = "compat" and remove the registry = DCE line. ----------------------------------------------------------------------------- Although in Eagan I didn't create an NIS slave in case rhino went down, in EDC, dind2 is an NIS slave of dind1. In EDC then, to manually update a NIS-controlled file (say you added a userid or changed a group), As root on dind1, cd /var/yp make To immediately push to the slave, dind2, yppush