How to Initialize a New Subdomain Client Machine
subclient1# nisclient -i -d sales.doc.com. -h client2 Initializing client subclient1 for domain "sales.doc.com.". Once initialization is done, you will need to reboot your machine. Do you want to continue? (type 'Y' to continue, 'N' to exit this script) |
The -i option initializes a client. The -d option specifies the new NIS+ domain name. (If the domain name is not specified, the default becomes the current domain name.) The -h option specifies the NIS+ server's host name.
See "How to Initialize a New Client Machine" for the rest of this script's output.
Initializing Subdomain NIS+ Client Users
You use the same procedure (nisclient) to initialize a user in the new domain as you do to initialize a user in the root domain. All users must make themselves NIS+ clients. This example shows you only what you would type to initialize a user for the new domain. For the rest of the script's output, see "How to Initialize an NIS+ User".
Prerequisites to Running nisclient
Before you can use the nisclient script to initialize a user:
The domain must have already been configured and its master server must be running.
The master server of the domain's tables must be populated. (At a minimum, the hosts table must have an entry for the new client machine.)
You must have initialized a client machine in the domain.
You must be logged in as a user on the client machine. In this example, the user is named user2.
Information You Need
You need:
The user's login name (user2, in this example)
The default Secure RPC password (nisplus)
The login password of the user that will become the NIS+ client
How to Initialize an NIS+ Subdomain User
user2prompt% nisclient -u At the prompt below, type the network password (also known as the Secure-RPC password) that you obtained either from your administrator or from running the nispopulate script. Please enter the Secure-RPC password for user2: |
See "How to Initialize an NIS+ User" for the rest of this script's output.
Summary of Commands for the Sample NIS+ Namespace
Table 4-4 summarizes the actual commands that you typed to create the sample namespace. The prompt preceding each command indicates on which machine the command should be typed.
Table 4-4 Creating the Sample Namespace: Command Summary
Tasks | Commands |
---|---|
Set environment path to include /usr/lib/nis--C shell or Bourne shell. | # setenv PATH $PATH:/usr/lib/nis or # PATH=$PATH:/usr/lib/nis; export PATH |
Optionally configure Diffie-Hellman key length. | master1# nisauthconf dh640-0 des |
Create root master server for doc.com. domain. | master1# nisserver -r -d doc.com. |
Populate the root master server's NIS+ tables--from files or from NIS maps. | master1# nispopulate -F -p /nis+files -d doc.com. or master1# nispopulate -Y -d doc.com. -h salesmaster -a \ 130.48.58.111 -y sales.doc.com. |
Add additional members to the admin group (2). | master1# nisgrpadm -a admin. doc.com. topadmin.doc.com. \ secondadmin.doc.com. |
Make a checkpoint of the NIS+ database. | master1# nisping -C org_dir. doc.com. |
Optionally configure Diffie-Hellman key length. | client1# nisauthconf dh640-0 des |
Initialize an NIS+ client machine in the doc.com. domain. | client1# nisclient -i -d doc.com. -h master1 |
Initialize user as an NIS+ client. | client1user1prompt% nisclient -u |
Convert NIS+ client to NIS+ server, without or with NIS compatibility or with NIS and DNS. | client1#rpc.nisd or client1# rpc.nisd -Y or client1# rpc.nisd -Y -B |
Create a root replica. | master1# nisserver -R -d doc.com. -h client1 |
Convert a server to a non-root master server of the sales.doc.com. domain. | master1# nisserver -M -d sales.doc.com. -h client2 |
Populate the new master server's NIS+ tables--from files or from NIS maps. | client2# nispopulate -F -p /nis+files -d sales.doc.com. or client2# nispopulate -Y -d sales.doc.com. -h \ businessmachine -a 130.48.58.242 -y business.doc.com. |
Create a master server replica. | client2# nisserver -R -d sales.doc.com. -h client3 |
Initialize an NIS+ client in the sales.doc.com.. domain. | subclient1# nisclient -i -d sales.doc.com. -h client2 |
Initialize user as an NIS+ client. | subclient1user2prompt% nisclient -u |