Home >

LunaCM Command Reference Guide > LunaCM Commands > role > role resetpw

role resetpw

Resets the password for a specified role. The partition SO can reset the Crypto Officer password or black PED key only if HSM policy 15: "Enable SO reset of partition PIN" is enabled. By default, this policy is not enabled and changing it is destructive.

If the target role is not on the current partition, you must specify the target role's partition's slot.

Note:  Resetting passwords for roles on partitions other than the current partition is possible only from the administrative partition.

Syntax

role resetPW -name <role> [-password <password>] [-slot <slotnumber>]

Parameter Shortcut Description
-name -n Name of role to have password reset.
-password -p Password for the specified role. Use this option for password-authenticated HSMs only. PED-authenticated HSMs will return an error.
-slot -s Target slot.

Example

lunacm:> role resetpw -name Crypto Officer

        Please attend to the PED.

Command Result : No Error