相关文章推荐

PAM session fail for users with an expired account

sudo whoami
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization

Check if the password for the account has expired

chage -l user
Last password change                    : May 07, 2018
Password expires                    : Aug 05, 2018
Password inactive                   : never
Account expires                     : never
Minimum number of days between password change      : 1
Maximum number of days between password change      : 90
Number of days of warning before password expires   : 10
chage -m 0 -M 99999 -I -1 -E -1 user

Soure: https://stackoverflow.com/questions/54345009/pam-open-session-system-error-and-sudo-policy-plugin-failed-session-initializa

 
推荐文章