Example: Changing the Requirements for Junos OS Plain-Text Passwords
The following example shows how to set the minimum password length to 12 characters and the maximum length to 22 characters:
[edit system login]passwords {minimum-length 12;maximum-length 22;}
