Related commands
• display password-control
• password-control aging enable
password-control alert-before-expire
Use password-control alert-before-expire to set the number of days before a user's password expires
during which the user is notified of the pending password expiration.
Use undo password-control alert-before-expire to restore the default.
Syntax
password-control alert-before-expire alert-time
undo password-control alert-before-expire
Default
The default is 7 days.
Views
System view
Predefined user roles
network-admin
Parameters
alert-time: Specifies the number of days before a user password expires during which the user is notified
of the pending password expiration. The value range is 1 to 30.
Usage guidelines
FTP users can only have their passwords changed by the administrator. Therefore, this command is
effective only for non-FTP users.
Examples
# Configure the device to notify a user about pending password expiration 10 days before the user's
password expires.
<Sysname> system-view
[Sysname] password-control alert-before-expire 10
Related commands
display password-control
password-control complexity
Use password-control complexity to configure the password complexity checking policy.
Use undo password-control complexity check to remove a password complexity checking item.
139