PAM configuration files define a module-type field that must be one of four literal keywords: auth, account, password, and session. The 'account' type manages non-authentication account checks (such as expiration or time-of-day restrictions), the 'password' type is used for updating a user's authentication token, and the 'session' type handles setup/teardown tasks needed before and after a user is granted access (such as mounting a home directory). 'authentication' is not itself a valid PAM keyword — the actual keyword used in pam.d files is 'auth' — and 'cache' is not a PAM module type at all.
Community Discussion