user-password history-password-check

Function

The user-password history-password-check command sets the number of historical passwords that cannot be used as a new password.

The undo user-password history-password-check command restores the number of historical passwords that cannot be used as a new password to the default value 10.

By default, the number of historical passwords that cannot be used as a new password is 10.

Format

user-password history-password-check historyPwdNum

undo user-password history-password-check

Parameters

Parameter Description Value
historyPwdNum

Sets the number of historical passwords that cannot be used as a new password.

The value ranges from 1 to 20.

Views

AAA view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

You can set the number of historical passwords that cannot be used as a password. The current password is also recorded as a historical password.

Example

# Set the number of historical passwords that cannot be used as a new password to 1.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] user-password history-password-check 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >