Table 6–6 shows a summary of the steps required to configure a client named client1 in the doc.com domain. It assumes the simplest case, so be sure you are familiar with the more thorough task descriptions before you use this summary as a reference. For the sake of brevity, this summary does not show the responses to each command.
Table 6–6 Setting Up a Client: Command Summary
Tasks |
Commands |
---|---|
Log in to domain's master. |
rootmaster% |
Create DES credentials for client. |
rootmaster% nisaddcred -p unix.client1.doc.com -P client1.doc.com. des |
Ascertain the Diffie-Hellman .key length. |
rootmaster% nisauthconf |
Log in, as superuser, to the client. |
client1% su Password: |
Assign the client a domain name. |
client1# domainname doc.com client1# domainname > /etc/defaultdomain |
Check that the client's switch configuration file has the correct settings. |
client1# more /etc/nsswitch.conf |
Set the Diffie-Hellman key length. |
client1# nisauthconf dh640-0 des |
Clean out /var/nis. |
client1# rm -rf /var/nis/* |
Initialize the client. |
client1# nisinit -c -H rootmaster |
Kill and restart the keyserver. |
client1# ps -ef | grep keyserv client1# kill -9 process-id client1# keyserv |
Run keylogin on the client. |
client1# keylogin -r password: |
Reboot the client. |
client1# init 6 |