user-name minimum-length (Local AAA server view)

Function

The user-name minimum-length command configures the minimum length of a local user name.

The undo user-name minimum-length command restores the default setting.

By default, the minimum length of a local user name is not limited.

Format

user-name minimum-length length

undo user-name minimum-length

Parameters

Parameter Description Value
length

Specifies the minimum length of a local user name.

The value is an integer ranging from 1 to 253.

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 accounts from being stolen and configure a minimum length for a local user name, run the user-name minimum-length command.

Configuration Impact

After the user-name minimum-length command is run, the newly created local user names must comply with the command configuration. Otherwise, the user accounts cannot be created. The user-name minimum-length command does not apply to the existing users.

Example

# Set the minimum length of a local user name to 4.
<HUAWEI> system-view
[~HUAWEI] local-aaa-server
[~HUAWEI-local-aaa-server] user-name minimum-length 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >