< Home

password alert before-expire

Function

The password alert before-expire command sets the number of days in advance users are notified that their passwords are about to expire.

The undo password alert before-expire command restores the default number of days in advance users are notified that their passwords are about to expire.

By default, the number of days in advance users are notified that their passwords are about to expire is 30 days.

Format

password alert before-expire day

undo password alert before-expire

Parameters

Parameter Description Value

day

Indicates how long the system displays a prompt before the password expires.

If the value is set to 0, the device does not prompt users that the passwords will expire.

The value is an integer that ranges from 0 to 999, in days. The default value is 30.

Views

Local administrator password policy view

Default Level

3: Management level

Usage Guidelines

When a user logs in to the device, the device checks how many more days the password is valid for. If the number of days is less than the prompt days set in this command, the device notifies the user in how many days the password will expire and asks the user whether they want to change the password.
  • If the user changes the password, the device records the new password and modification time.
  • If the user does not change the password or fails to change the password, the user can still log in as long as the password has not expired.

Example

# Set the number of password expiration prompt days to 90.
<HUAWEI> system-view
[HUAWEI] aaa
[HUAWEI-aaa] local-aaa-user password policy administrator
[HUAWEI-aaa-lupp-admin] password alert before-expire 90
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >