Use the nzpassword command to manage passwords. The primary use is to store your password locally and thus use IBM® Netezza® CLI commands without having to type your password on the command line.
nzpassword subcmd [subcmd options]
Input | Description |
---|---|
nzpassword add options | Adds a locally cached password. |
nzpassword delete options | Removes the locally cached passwords. |
nzpassword resetkey options | In normal system operation and without any options, this command
creates a unique client key and re-encrypts the user passwords with
the new key. If you have an existing password file that was created by using older (pre-Release 6.0 or pre-Release 4.6.6 clients), this command also converts the old Blowfish-encrypted passwords to AES-256-encrypted passwords. The client key that is used for the encryption is auto-generated. For more information about using encrypted passwords, see Encrypted passwords. |
nzpassword show | Displays cached passwords. |
Command | Option | Description |
---|---|---|
nzpassword add | -host name | Specifies a host name or IP address [NZ_HOST]. |
-u user | Specifies the Netezza user name [NZ_USER]. | |
-pw password | Specifies the user password [NZ_PASSWORD]. | |
-timeout secs | Specifies how long to wait for the command to time out (in seconds) before returning an error. The default is 300. | |
nzpassword delete | -u user | Specifies the database user name [NZ_USER]. |
-host name | Specifies a host name or IP address [NZ_HOST]. | |
-all | Deletes all cached passwords. | |
nzpassword resetkey | -none | If you must downgrade to a previous release, or if your client users must support mixed releases of clients, you can use the nzpassword resetkey -none command to convert AES-256-encrypted passwords to Blowfish-encrypted passwords. For more information about using encrypted passwords, see Encrypted passwords. |
nzpassword show | N/A | Shows the cached passwords for the current user. The command displays the message No cached passwords if there is none to display. |
Use with the CREATE USER or ALTER USER command.
nzpassword add -u user -pw password -host nzhost
nzpassword delete -u user -host nzhost
nzpassword show
nzpassword resetkey