Red Hat Bugzilla – Bug 963889
Man page for "mkpasswd" inaccurate
Last modified: 2013-08-27 07:07:58 EDT
For "mkpasswd" some command line switches are described inaccurately.
For each of the -C -d and -s switches, the man page says they define the "minimum number" of uppercase letters, digits, and special characters (respectively) that will be in the generated password.
In reality, these switches and their defaults define the EXACT number of these character classes that will appear, with the remaining characters for any specified password length being made of of lowercase characters.
Created attachment 786185 [details]
Patch removes the words "minimum" and "at least" when digits, uppercase alphabetic characters and special characters are mentioned.
It was only true for lower case characters.
Created attachment 786188 [details]
Thanks for the bug report.
Proposed patch is above, does it look fine?
Comment on attachment 786185 [details]
+that contains at 3 digits and 5 uppercase characters.
+that contains 3 digits and 5 uppercase characters.
Poop. Forgot period and commented on wrong patch anyway.
Thanks! Looks good!