You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: User Unable to Login using Password “pam_unix has expired (failed to change password)”

in Linux 1 comment

APPLIES TO:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

SYMPTOMS

Multiple users unable to login using password

---/var/log/secure-- 
Sep 25 12:36:27 localhost sshd[65664]: pam_unix(sshd:account): account testuser has expired (failed to change password) 
Sep 25 12:36:27 localhost sshd[65664]: fatal: Access denied for user testuser by PAM account configuration [preauth] 

CAUSE

User password is expired.

[opc@localhost ~]$ sudo chage -l testuser 
Last password change                                    : Jul 25, 2023 
Password expires                                        : Sep 23, 2023       < ----- 
Password inactive                                       : Sep 23, 2023 
Account expires                                         : never 
Minimum number of days between password change          : 1 
Maximum number of days between password change          : 60 
Number of days of warning before password expires       : 7 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!