HP 3PAR OS 3.1.3 Command Line Interface Reference

setpassword
DESCRIPTION
The setpassword command allows a user with Super level role to change the password for any
user and create a password file on a client. Edit-, browse-, or service-level users can use the
setpassword command to change their own passwords or save their password files on a client.
SYNTAX
setpassword [options <arg>]
AUTHORITY
Super, Edit, Browse, Service
Any role granted the password_setany right can set any user password.
Any role granted the password_setown right can only set their own password.
OPTIONS
save|saveonly
This option cannot be used independently of the file option.
save
Specifies that the password, as specified with the file option, is saved on both the storage
system and on a client of the system.
saveonly
Specifies that the password, as specified with the file option, is only saved on the client.
file <pwfile>
Specifies the password file to be saved. The <pwfile> option can be any valid file name in the
client system. This option cannot be used independently of the save or saveonly options.
u <username>
Specifies the login name of the user whose password is being changed. If a login name is not
specified, the command defaults to the current user.
SPECIFIERS
None
RESTRICTIONS
Only a user with Super level role can set another user’s password.
Passwords can be no longer than eight non-null characters, and must be at least six non-null
characters long.
Using the -saveonly option with the -file option leaves a copy of the encrypted password
in the -file argument. This file, if compromised, could allow the user to be impersonated.
EXAMPLES
The following example shows how to set a user’s (user1) password on an storage system and on
a client:
cli% setpassword save file <insertfile> user1
296 Set Commands