Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在linux中配置pam,使登录id和密码不一样?
使用 Ubuntu 安装 passwdqc 模块:
$sudo apt-get install libpam-passwdqc
之后,修改 /etc/pam.d/common-password 文件,在开头添加下一行:
password requisite pam_passwdqc.so config=/etc/passwdqc.conf
并添加到 /etc/passwdqc.conf 文件:
similar=deny