我按照在线指南安装了一些 PAM 模块:
sudo apt-get install libpam-modules libpam-pwquality libpam-cracklib
我的标准用户帐户“jon”具有 sudo 权限,但现在如果我尝试提升自己的权限,它会一直告诉我输入的密码错误。我什至非常缓慢地打字以确保。我打破了什么东西吗?
我的/etc/pam.d/common-*
文件看起来像这样。
/etc/pam.d/common-auth
:
auth required pam_tally2.so deny=3 unlock_time=300 even_deny_root
auth required pam_env.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 1000 quiet_success
auth required pam_deny.so
/etc/pam.d/common-account
:
account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 1000 quiet
account required pam_permit.so
/etc/pam.d/common-password
:
password requisite pam_pwquality.so local_users_only retry=3 minlen=15 gecoscheck maxrepeat=3
password required pam_pwhistory.so remember=400 use_authtok
password sufficient pam_unix.so sha512 shadow use_authtok
password required pam_deny.so
/etc/pam.d/common-session
:
session optional pam_keyinit.so revoke
session required pam_limits.so
-session optional pam_systemd.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so