Home >

LunaSH Command Reference Guide > LunaSH Commands > user > user password

user password

Sets/changes the specified user's password. This command allows the SafeNet appliance admin to change a user's password. The user with ‘admin’ role may set the password for any user. Non-admin users may set only their own password using the my password set command.

Syntax

user password [<clientname>]

Parameter Shortcut Description
<clientname>   This parameter is required when the admin user sets other user's passwords. It is optional for other users setting their own passwords.

The user name option can be used by the admin user to specify any user that has been created. Users other than ‘admin’ may specify their own user name or leave the option blank. Users with the "admin" role can change their own passwords and other named users' passwords. The password is not input with the command - it is prompted after the command is issued, and the typed input is not displayed, for security reasons.

Example

lunash:> user password smith

Changing password for user smith.
You can now choose the new password.
A valid password should be a mix of upper and lower-case letters, 
digits, and other characters. You should use a minimum 8-character-long
password with characters from at least 3 of these 4 classes.
An upper case letter that begins the password and a digit that 
ends it do not count towards the number of character classes used.
 
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully.
  

Command Result: 0 (Success)