Login error occurred when user password is expired
Issue
- The following messages are output when one user tries to login:
PAM failed: Authentication token is no longer valid; new one required
user@xxxx.service: Failed to set up PAM session: Operation not permitted
user@xxxx.service: Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted
Failed to start User Manager for UID xxxx.
And then the similar messages in /var/log/secure are output when one user tries to login:
pam_unix(systemd-user:account): expired password for user xxxx (password aged)
pam_unix(systemd-user:account): expired password for user xxxx (password aged)
pam_unix(systemd-user:account): expired password for user xxxx (password aged)
...
Environment
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- PAM login
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.