user-name minimum-length

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 1.

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

AAA 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] aaa
[~HUAWEI-aaa] user-name minimum-length 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >