The nisupdkeys command is located in /usr/lib/nis. The nisupdkeys command uses the following arguments (for a complete description of the nisupdkeys command and a full list of all its arguments, see the nisupdkeys man page).
Table 13–4 nisupdkeys Arguments
Argument |
Effect |
---|---|
(no argument) |
Updates all keys of servers for current domain. |
directoryname |
Updates the keys of the directory object for the named directory. |
-H servername |
Updates the keys of the named server for the current domain directory object. A fully qualified host name can be used to update the keys of servers in other domains. |
-s -H servername |
Updates the keys of all the directory objects served by the named server. |
-C |
Clears the keys. |
Table 13–5 gives an example of updating a public key.
Table 13–5 Updating an NIS+ Public Key: Command Examples
Tasks |
Commands |
---|---|
Update all keys of all servers of the current domain (doc.com). |
rootmaster# /usr/lib/nis/nisupdkeys Fetch Public key for server rootmaster.doc.com. netname='unix.rootmaster@doc.com' Updating rootmaster.doc.com.'s public key. Public key: public-key |
Update keys of all servers supporting the sales.doc.com domain directory object. |
salesmaster# nisupdkeys sales.doc.com (Screen notices not shown) |
Update keys for a server named master7 in all the directories that store them. |
rootmaster# nisupdkeys -H master7 |
Clear the keys stored by the sales.doc.com directory object. |
rootmaster# nisupdkeys -C sales.doc.com |
Clear the keys for the current domain directory object for the server named master7. |
rootmaster# nisupdkeys -C -H master7 |