PAM password expiration behavior during non-interactive SSH sessions
Linux systems utilize the pam_unix and pam_expire modules to enforce password aging policies based on the /etc/shadow file. While these modules consistently force a password change during local TTY logins, the behavior varies when credentials expire for users connecting via non-interactive SSH sessions (e.g., SFTP or automated SCP transfers). The goal is to