PASSWORD

Changes or removes the password for a user or an account.

Syntax

PASSWORD {(options}

Command class

TCL-I command.

Options

A Sets an account password, rather than a user password. This option is effective in the SYSMAN account only; otherwise, it is ignored.

X Displays the entered password in hexadecimal characters.

R Forces the user to reset/change the supplied user password when they next logon.

Prompts

Please enter user id: (for a user password)
or
Enter Account name: (for an account password)

Enter current password: (not required if from the SYSMAN account)

Enter new password:

Please re-enter your new password to verify:

Restrictions

Used from SYSMAN to change or remove a user or account password. Used from other accounts to change the password of the current user.

However, when PASSWORD is used from the SYSMAN account, then any failure of the user/account password rules are reported but then ignored due to the SYSMAN override.

Error messages

If the password does not meet the requirements of the relevant password definition, initially one of three messages is displayed:

After this, the error message defined in the password definition itself is displayed; for example:

Passwords must be between 7 and 24 characters and must contain
at least 2 uppercase letters, 2 lowercase letters and 2 numbers.

If an incorrect password is entered at the Please re-enter your new password to verify: prompt, the following message is displayed:

Your password does not verify!

In either case, the system redisplays the prompt:

Enter new password:

If the command is entered from the SYSMAN account and an invalid account name is entered, the following message is displayed:

Invalid Account

Examples

Assume an existing account "TESTACC" with a password "TST". The password is to be changed to "PASSTEST" as shown in examples 1 and 2. These examples illustrate changing the password with and without the hexadecimal X option, respectively. The A option is required to change an account password. 

Example 1: From the SYSMAN account

:PASSWORD (A

Enter Account name: TESTACC

Enter new password: PASSTEST

Please re-enter your new password to verify: PASSTEST

Example 2: From the SYSMAN account

:PASSWORD (XA

Enter Account name: TESTACC
                     54695354656767
Enter new password: PASSTEST
                     5065535354695354
Please re-enter your new password to verify: PASSTEST
                     5065535354695354

Example 3: From a user account

This example shows the PASSWORD command being used to remove a user password (not the account password).

:PASSWORD

Enter current password: RETURN

Enter new password: RETURN

Please re-enter your new password to verify: RETURN

Example 4: From the SYSMAN account

This example shows changing a user's password from the SYSMAN account.

:PASSWORD

Please enter user-id: EMP7158

Enter new password: RETURN

Please re-enter your new password to verify: RETURN