/usr/lib/nis/nisupdkeys -s [ -a | -C ] -H host
This command updates the public keys in an NIS+ directory object. When the public key for a NIS+ server is changed, the new key must be propagated to all directory objects that reference that server.
nisupdkeys reads a directory object and attempts to get the public key for each server of that directory. These keys are placed in the directory object and the object is then modified to reflect the new keys.
If directory is present, the directory object for that directory is updated. Otherwise the directory object for the default domain is updated.
On the other hand, nisupdkeys -s gets a list of all the directories served by host and updates those directory objects. This assumes that the caller has adequate permission to change all the associated directory objects. The list of directories being served by a given server can also be obtained by nisstat.1m
Before you do this operation, make sure that the new address/public key has been propagated to all replicas.
The following example updates the keys for servers of the foo.bar. domain.
example% nisupdkeys foo.bar.
This example updates the key for host fred which serves the foo.bar. domain.
example% nisupdkeys -H fred foo.bar.
This example clears the public key for host wilma in the foo.bar. directory.
example% nisupdkeys -CH wilma foo.bar.
This example updates the public key in all directory objects that are served by the host wilma.
example% nisupdkeys -s -H wilma
The user executing this command must have modify access to the directory object for it to succeed. The existing directory object can be displayed with the niscat.1 command using the -o option.
This command does not update the directory objects stored in the NIS_COLD_START file on the NIS+ clients.
If a server is also the root master server, then nisupdkeys -s cannot be used to update the root directory.
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97