password (Login)
Syntax
password { change-type (character-sets | set-transitions); format (sha256 | sha512); maximum-length length; maximum-lifetime days; minimum-changes number; minimum-character-changes number; minimum-length length; minimum-lifetime days; minimum-lower-cases number; minimum-numerics number; minimum-punctuations number; minimum-reuse number; minimum-upper-cases number; }
Hierarchy Level
[edit system login]
Description
Configure special requirements such as character length and encryption format for plain-text passwords. Newly created passwords must meet these requirements.
Using several password minimum requirement options will cause
the minimum-length
to be reset if the total sum of the
required minimums exceeds the minimum-length
setting.
Options
change-type | Set requirements
for using character sets in plain-text passwords. When you combine
this statement with the
|
format | Configure the authentication algorithm for plain-text passwords. The hash algorithm that authenticates the password can be one of these algorithms:
|
maximum-length length | Specify the maximum number of characters allowed in plain-text passwords. Newly created passwords must meet this requirement.
|
maximum-lifetime days | Specify the maximum duration of a password in days, where the password expires after the maximum duration is reached. If you have the required permissions, you are able to control the maximum duration of a password. If the age of the password reaches the maximum time configured, the password expires and must be changed. If your password has expired, you cannot commit a configuration until you change your password. Only passwords for local user accounts can expire based on time configured on the maximum lifetime statement. Note:
You cannot reuse the same password when the password expires,
unless you also configure the number of times the password can be
reused on the If the
|
minimum-changes number | Specify the minimum number of character sets (or character set changes) required for plain-text passwords. Newly created passwords must meet this requirement. This statement is used in combination with the
|
minimum-character-changes number | Specify the minimum number of character changes between old and new passwords. Newly created passwords must meet this requirement. If you have the required permissions, you are able to configure the number of character changes between passwords. If the number of character changes between the old password and new password is greater than or equal to the configured value for minimum number of character changes, the new password is accepted. If the number of character changes is less than the configured value, the new password is rejected.
|
minimum-length length | Specify the minimum number of characters required in plain-text passwords. Newly created passwords must meet this requirement. This statement can be used in combination with all of the other
requirement options for plain-text passwords, such as Using several password minimum requirement options will cause
the minimum password length to be reset if the total sum of the required
minimums exceeds the setting configured on the
|
minimum-lifetime days | Specify in days the minimum duration of a password
before the password can be changed. If you have the required permissions,
you are able to control the minimum lifetime of a password. You cannot
change the password if the age of the password does not exceed the
duration configured on the Note:
The If
|
minimum-lower-cases number | Specify the minimum number of lower-case letters required in plain-text passwords. Newly created passwords must meet this requirement. This statement can be used in combination with all of the other
requirement options for plain-text passwords, such as Using several password minimum requirement options will cause
the minimum password length to be reset if the total sum of the required
minimums exceeds the setting configured on the
|
minimum-numerics number | Specify the minimum number of numeric-class characters required in plain-text passwords. Newly created passwords must meet this requirement. This statement can be used in combination with all of the other
requirement options for plain-text passwords, such as Using several password minimum requirement options will cause
the minimum password length to be reset if the total sum of the required
minimums exceeds the setting configured on the
|
minimum-punctuations number | Specify the minimum number of punctuation-class characters required in plain-text passwords. Newly created passwords must meet this requirement. This statement can be used in combination with all of the other
requirement options for plain-text passwords, such as Using several password minimum requirement options will cause
the minimum password length to be reset if the total sum of the required
minimums exceeds the setting configured on the
|
minimum-reuse number | Specify the number of old passwords which should not match the new password. Newly created passwords must meet this requirement. If you have the required permissions, you are able to control the number of old passwords that need to be compared. The number of old passwords to compare with the new password depends on the value configured. If a match is found between the new password and any of the old passwords, the device rejects the new password and terminates. If the new password is different from the configured number of old passwords, the new password is accepted.
|
minimum-upper-cases | Specify the minimum number of upper-case letters required in plain-text passwords. Newly created passwords must meet this requirement. This statement can be used in combination with all of the other
requirement options for plain-text passwords, such as Using several password minimum requirement options will cause
the minimum password length to be reset if the total sum of the required
minimums exceeds the setting configured on the
|
Required Privilege Level
admin—To view this statement in the configuration.
admin-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 7.4.
Statements minimum-lower-cases
, minimum-numerics
,
minimum-punctuations
, and minimum-upper-cases
introduced in Junos OS Release 12.1.
All of the previously mentioned statements were introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Statements minimum-reuse
and
minimum-character-changes
introduced in Junos OS Release
18.3.
Statements maximum-lifetime
and minimum-lifetime
introduced in Junos OS Release 18.4.
Option sha1
is not supported in Junos OS Evolved.
sha1
option deprecated in Junos OS Release 22.2R1.