Table 4–2 contains the generic sequence of NIS+ scripts and commands you will use to create a ample NIS+ domain. Subsequent sections describe these command lines in detail. After you are familiar with the tasks required to create NIS+ domains, servers, and clients, use Table 4–2 as a quick-reference guide to the appropriate command lines. Table 4–2 is a summary of the actual commands with the appropriate variables that you type to create the sample NIS+ namespace.
Table 4–2 NIS+ Domains Configuration Command Lines Summary
Action |
Machine |
Command |
---|---|---|
Include /usr/lib/nis in root's path; C shell or Bourne shell. |
Root master server and client machines as superuser |
setenv or
|
Optionally, if using DES authentication, select the Diffie-Hellman key length |
Server and client machines as superuser |
nisauthconf -dhkey-length-alg-type des |
Create a root master server without or with NIS (YP) compatibility. |
Root master server as superuser |
nisserver -r-dnewdomain. or nisserver -Y-r-d newdomain. |
Populate the root master server tables from files or from NIS maps. |
Root master server as superuser |
nispopulate -F-p /files -d newdomain. or nispopulate -Y-d newdomain. -h NISservername\ -a NIS_server_ipaddress -y NIS_domain |
Add additional users to the NIS+ admin group. |
Root master server as superuser |
nisgrpadm-aadmin.domain.name.domain. |
Make a checkpoint of the NIS+ database. |
Root master server as superuser |
nisping- C domain. |
Initialize a new client machine. |
Client machine as superuser |
nisclient- i-d domain . -h master1 |
Initialize user as an NIS+ client. |
Client machine as user |
nisclient-u |
Start the rpc.nisd daemon—required to convert a client to a server without or with NIS (and DNS) compatibility. |
Client machine as superuser |
rpc.nisd or rpc.nisd-Y or rpc.nisd -Y -B |
Convert a server to a root replica. |
Root master server as superuser |
nisserver-R-ddomain. -h clientname |
Convert a server to a non-root master server. |
Root master server as superuser |
nisserver -M-dnewsubdomain.domain. -h\clientmachine |
Populate the new master server tables from files or from NIS maps. |
New subdomain master server as superuser |
nispopulate -F-p/subdomaindirectory -d \ newsubdomain .domain . or nispopulate -Y-dnewsubdomain .domain.-h NISservername -aNIS_server_ipaddress -y NIS_domain |
Convert a client to a master server replica. |
Subdomain master server as superuser |
nisserver-R-dsubdomain .domain. - h clientname |
Initialize a new client of the subdomain. Clients can be converted to subdomain replicas or to another server. |
New subdomain client machine as superuser |
nisclient -i -d newsubdomain.domain. - h \ subdomainmaster |
Initialize user as an NIS+ client. |
Client machine as user |
nisclient -u |
To see what commands an NIS+ script calls, without actually executing the commands, use the -x option. The -x option causes the command names and their approximate output to echo to the screen as if you were actually running the script. Running the scripts for the first time with -x can minimize unexpected results. For more information, see the man pages for the scripts.