Home >

LunaSH Command Reference Guide > LunaSH Commands > hsm > hsm changepw

hsm changepw

Change the password or PED key contents for the HSM Admin. Both the old and the new PED key are required for PED-authenticated HSMs.

User Privileges

Users with the following privileges can perform this command:

Admin

Syntax

hsm changepw [-oldpw <password> -newpw <password>]

Option

Shortcut

Description

-newpw <password> -n

Specifies the new password that is used as the HSM Admin's login credential to the HSM. If the new password is not provided on the command line, the you are interactively prompted for the new password, and for confirmation of the new password. A valid password should be a mix of upper and lower-case letters, digits, and other characters, and must be a minimum of 8 characters long.

-oldpw <password> -o Specifies the current password for the HSM Admin. If the current password is not provided on the command line, the user is interactively prompted for the current password.

Example

lunash:>hsm changepw

Please enter the HSM Administrators' current password:
> ********

Please enter a new password for the HSM Administrator:
> ********

Please re-enter password to confirm:
> ********
 
'hsm changePw' successful.
 
 
Command Result : 0 (Success)