CHKEY(1) | User Commands | CHKEY(1) |
chkey [-p] [-s nis | files | ldap] [-m <mechanism>]
chkey ensures that the login password and the secure-rpc password(s) are kept the same, thus enabling password shadowing. See shadow(5).
The key pair can be stored in the /etc/publickey file (see publickey(5)) or the NIS publickey map. If a new secret key is generated, it will be registered with the local keyserv(8) daemon.
Keys for specific mechanisms can be changed or reencrypted using the -m option followed by the authentication mechanism name. Multiple -m options can be used to change one or more keys.
If the source of the publickey is not specified with the -s option, chkey consults the publickey entry in the name service switch configuration file. See nsswitch.conf(5). If the publickey entry specifies one and only one source, then chkey will change the key in the specified name service. However, if multiple name services are listed, chkey can not decide which source to update and will display an error message. The user should specify the source explicitly with the -s option.
Non root users are not allowed to change their key pair in the files database.
-p
-s nis
-s files
-s ldap
-m <mechanism>
/etc/publickey
February 25, 2017 | OmniOS |