pam_unix - Module for traditional password authentication
This is the standard Unix authentication module. It uses standard calls
from the system's libraries to retrieve and set account information as
well as authentication. Usually this is obtained from the /etc/passwd
and the /etc/shadow file as well if shadow is enabled.
Ubuntu 中的密码复杂性由 PAM 控制。
man pam_unix
打开控制密码复杂性的文件:
有一行:
其中定义了密码复杂性的基本规则。您可以通过将其更改为以下方式来添加最小长度覆盖:
替换
20
为您要用于密码保存并退出的最少字符数。阅读本文和本文以了解有关 PAM 的更多信息。