CRON[204259]: PAM unable to dlopen(pam_pwquality.so)

2024-11-18 linux

詳細錯誤訊息

Nov 18 12:17:01 91214Desktop CRON[204259]: PAM unable to dlopen(pam_pwquality.so): /lib/security/pam_pwquality.so: cannot open shared object file: No such file or directory
Nov 18 12:17:01 91214Desktop CRON[204259]: PAM adding faulty module: pam_pwquality.so
Nov 18 12:17:01 91214Desktop CRON[204259]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Nov 18 12:17:01 91214Desktop CRON[204259]: pam_unix(cron:session): session closed for user root

環境

  • Debian 11

解決方式

sudo apt install libpam-pwquality
sudo mkdir -p /lib/security
sudo ln -s /lib/x86_64-linux-gnu/security/pam_pwquality.so /lib/security/pam_pwquality.so