我不明白为什么在我的Ubuntu安装中有这么小的密码字符限制。我想大概有13个角色。有没有办法修改Ubuntu,这样我就可以有更长的密码了?
发布于 2015-07-03 07:49:57
Ubuntu中的密码复杂性由PAM控制。
man pam_unix
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.打开控制密码复杂性的文件:
sudo gedit /etc/pam.d/common-password有一条线:
password [success=1 default=ignore] pam_unix.so obscure sha512它定义了密码复杂性的基本规则。可以通过将最小长度覆盖更改为:
password [success=1 default=ignore] pam_unix.so obscure sha512 minlen=20用您想要用于密码保存和退出的字符的最小值替换20。
https://askubuntu.com/questions/643885
复制相似问题