< Home

lefttime

Function

The lefttime command configures the validity period and expiration notification time of user passwords.

The undo lefttime command restores the default values.

Format

lefttime life-time alarmtime alarm-time

undo lefttime

Parameters

Parameter Description Value
life-time Specifies the validity period of a password. The value is an integer ranging from 1 to 365, in days.
alarm-time Specifies the expiration notification time of a password. The value is an integer ranging from 0 to 30, in days. 0 indicates that the system does not notify users of password expiration in advance.

Views

Password policy view

Default Level

2: Configuration level

Usage Guidelines

After a user logs in within the expiration notification time, the system redirects the user to the password expiration notification page for password change.

By default, user passwords are always valid, and the system does not notify users of password expiration in advance.

Example

# Set the validity period for user passwords to 60 days and the expiration notification time to 15 days in advance.

<sysname> system-view
[sysname] password-policy
[sysname-password] lefttime 60 alarmtime 15
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >