The set password min-length command sets the minimum length of passwords in plain text allowed by a device.
The undo set password min-length command restores the default minimum length of passwords in plain text allowed by a device.
By default, the minimum length of passwords in plain text allowed by a device is 8 characters.
Parameter | Description | Value |
---|---|---|
length | Specifies the minimum length of passwords in plain text allowed by a device. | The value is an integer ranging from 6 to 16. |
Usage Scenario
This command can change the limit on the password length. A longer password length makes the password more complex and improves device security.
Precautions
The set password min-length command limits the length of all passwords in plain text. Only the passwords longer than or equal to the minimum length take effect. The minimum length does not take effect for the following passwords:
The set password min-length command does not limit the minimum length of other types of passwords.
If password complexity check has been disabled using the undo user-password complexity-check command, the set password min-length command does not limit the minimum length of passwords in plain text of local users.
For device security purposes, do not disable the password complexity check function and change the password periodically.