user-password min-len(Local AAA server view)

Function

The user-password min-len command configures the minimum length of a password in simple text mode.

The undo user-password min-len command restores the minimum length of a password in simple text mode to the default value.

By default, the minimum length of a password in simple text mode is not configured, that is, the minimum length of the passwords in simple text mode is 1.

Format

user-password min-len min-length

undo user-password min-len

Parameters

Parameter Description Value
min-length

Specifies the minimum length of a password.

The value is an integer that ranges from 3 to 128.

Views

Local AAA server view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

To prevent security risks such as account stealing, run the user-password min-len command to raise password strength requirements.

Prerequisites

A local user has logged in to the device as an administrator.

Configuration Impact

After the user-password min-len command is configured, the length of the passwords configured for the subsequent users must exceed the minimum value; otherwise, the users cannot be created or the passwords cannot be modified.

Precautions

This command applies to the passwords in simple text mode only.

If the login password does not satisfy the minimum password length requirements, the system prompts you to change your password. Change your password based on the prompted message.

Example

# Set the minimum length of passwords to 16 in the local AAA server view.
<HUAWEI> system-view
[~HUAWEI] local-aaa-server
[~HUAWEI-local-aaa-server] user-password min-len 16
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >