chuser

Use the chuser command to change attributes of a given user in the basic user registry. Note: The -password change can only be issued for the user that is currently logged in. You cannot change a password for another user.

Syntax

Read syntax diagramSkip visual syntax diagram chuser -help-h-?-quiet -name name -passwordpassword-emailemail_address[,email_address]-deleteEmail

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-quiet
Suppresses the confirmation prompt for this command. This flag answers yes to all confirmation prompts.
-name name
Specifies a user name you want to change the password for in the basic user registry.
-password password
Specifies the password to set for the new user. If you do not include this parameter, you will be prompted for the password. If prompted, the password will be masked and you will be prompted to confirm the password by retyping it. If the parameter is used, it will display in plain text but no additional prompting will occur. The maximum password length is 104 characters.
-email email_address[,email_address]
Specifies the email addresses to be associated with the given user. Multiple email addresses can be added using a comma separated list.
-deleteEmail

If this parameter is set, all the email addresses associated with the specified user will be deleted.

Example: Changing a user password

The following command will update the password for user bob.

csmcli> chuser -name bob

The following output is returned:

Please enter a password for user bob:
Please confirm the password for user bob:
IWNR4038I Successfully updated the password for user bob.