password-control aging

Syntax

password-control aging aging-time

undo password-control aging

View

System view, user group view, local user view

Default level

2: System level

Parameters

aging-time: Specifies the password aging time in days, in the range of 1 to 365.

Description

Use password-control aging to set the password aging time.

Use undo password-control aging to restore the default.

By default, the global password aging time is 90 days, the password aging time of a user group equals the global setting, and the password aging time of a local user equals that of the user group to which the local user belongs.

A password aging time setting with a smaller application range has a higher priority. That is, the system prefers the setting for a local user. If there is no setting for the local user, the system will use the setting for the user group. If there is no setting for the user group, the system will use the global setting.

If you do not set the aging time for super passwords, the global password aging time applies.

Related commands: display password-control, local-user, and user-group.

Examples

# Set the global password aging time to 80 days.

<Sysname> system-view
[Sysname] password-control aging 80 

# Set the password aging time for user group test to 90 days.

[Sysname] user-group test
[Sysname-ugroup-test] password-control aging 90
[Sysname-ugroup-test] quit

# Set the password aging time for local user abc to 100 days.

[Sysname] local-user abc
[Sysname-luser-abc] password-control aging 100