root [/]# passwd pms
Changing password for pms
Last successful password change for pms: Thu Oct 6 08:10:59 2016
Last unsuccessful password change for pms: Thu Oct 6 09:27:28 2016
Do you want (choose one letter only):
pronounceable passwords generated for you (g)
a string of letters generated (l) ?
to pick your passwords (p) ?
Enter choice here: p
New password:
The password entered is not valid. Valid passwords must contain at least:
0 upper case character(s),
1 lower case charcter(s),
1 digit(s), and
1 special character(s).
解决:vi /etc/default/security
PASSWORD_MIN_LOWER_CASE_CHARS=1 --->小写字符
PASSWORD_MIN_DIGIT_CHARS=1 --->数字
PASSWORD_MIN_SPECIAL_CHARS=1 ----> 特殊字符
MIN_PASSWORD_LENGTH=8
PASSWORD_HISTORY_DEPTH=2
PASSWORD_MAXDAYS=90
PASSWORD_MINDAYS=7
AUTH_MAXTRIES=5
想要违反密码规则,需注释security文件中的策略即可。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31401608/viewspace-2145316/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31401608/viewspace-2145316/