pwquality.conf:maxsequence 与 maxclassrepeat

pwquality.conf:maxsequence 与 maxclassrepeat

请问 /etc/security/pwquality.con 中的 maxsequence 和 maxclassrepeat 有什么区别?谢谢

答案1

  1. maxsequence处理允许长序列连续数字或字母的问题。如果您设置了maxsequence=2,您可以在密码中包含“12”、“89”或“bc”之类的字符串,但不能包含“123”、“890”或“bcd”之类的字符串。

  2. maxclassrepeat处理允许相同类型字符的长序列。小写字母、大写字母、数字和其他字符都是不同的“类别”。如果您设置,maxclassrepeat=3您可以在密码中使用“tryThis44”,因为同一类别的最长字符串是 3(“try”或“his”)。但不允许使用“trythis44”,因为同一类别的最长字符串是 7(“trythis”)

相关内容