< Home

password history record number

Function

The password history record number command sets the maximum number of historical passwords recorded for each user.

The undo password history record number command restores the default maximum number of historical passwords recorded for each user.

By default, five historical passwords are recorded for each user.

Format

password history record number number

undo password history record number

Parameters

Parameter Description Value
number

Indicates the maximum number of historical passwords recorded for each user.

If the value is set to 0, the device will not check whether a changed password is the same as any historical password.

The value is an integer that ranges from 0 to 12. The default value is 5.

Views

Local administrator password policy view, local access user password policy view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To improve password security, it is not recommended that you use a previously used password. You can set the maximum number of historical passwords recorded for each user. When a user changes the password, the device compares the new password against the historical passwords stored on the device. If the new password is the same as a stored password, the device displays an error message to prompt the user that password change fails.

Precautions

When the number of recorded historical passwords reaches the maximum value, the later password will overwrite the earliest password on the device.

After the historical password recording function is disabled, the device does not record historical passwords; however, the passwords that have been stored are not deleted.

In V200R010C00 and later versions, when the device starts with the default configurations, it automatically performs the following configurations and saves the configurations to the configuration file:
  • Run the local-aaa-user password policy administrator command to enable the password policy for local administrators.
  • Run the password expire 0 command to configure the passwords of local administrators to be permanently valid.
  • Run the password history record number 0 command to configure the device not to check whether a changed password of a local administrator is the same as any historical password.

Example

# Set the maximum number of historical passwords recorded for each administrator to 10.
<HUAWEI> system-view
[HUAWEI] aaa
[HUAWEI-aaa] local-aaa-user password policy administrator
[HUAWEI-aaa-lupp-admin] password history record number 10
# Set the maximum number of historical passwords recorded for each local access user to 10.
<HUAWEI> system-view
[HUAWEI] aaa
[HUAWEI-aaa] local-aaa-user password policy access-user
[HUAWEI-aaa-lupp-acc] password history record number 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >