Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

PAM

Direct answer

Pluggable Authentication Modules provide configurable authentication, account, session and password-management stacks for PAM-aware services, with outcome determined by module order, control flags, service file and application integration.

When to use this

Use it when configuring, checking or troubleshooting PAM in Linux Security.

First 30 seconds

1. PAM modules control authentication, account, password and session.

2. Order and control flags matter.

3. pam_faillock for lockout, pam_pwquality for passwords.

4. Use authselect/pam-auth-update to manage.

5. Test changes with a second session open.

Operational verification

login → PAM stack → modules → result

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

A PAM result shows the configured stack returned a status to a participating application, but it does not show the application enforced it correctly or non-PAM paths are controlled.

Suspicious evidence: wrong service file, include recursion/order, sufficient bypass, missing account phase, fail-open module error, application ignores result, debug secrets or local/remote stack mismatch.

Platform / version applicability
Platform and workload security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPlatform and workload security
Scope / prerequisiteUse it when configuring, checking or troubleshooting PAM in Linux Security.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

PAM-aware application/service → service stack/includes → auth modules/control flow → account check → session/password modules → application decision → logs

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • PAM configured ≠ every authentication path uses PAM.
  • One module success ≠ stack success or account/session authorization.
  • Configuration file present ≠ parsed, loaded and effective runtime state.
  • One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.
Key checks
  • cat /etc/pam.d/sshd /etc/pam.d/common-auth — PAM stacks
  • authselect current — RHEL profile
  • faillock --user <u> — lockout state
ReferenceWhat it is2 sections · depth on demand

Scope and canonical references

This Topic covers PAM as a security control: lockout, password quality, MFA modules and hardening review.

Reading a PAM stack

Files in /etc/pam.d/ list modules per type: auth, account, password, session, with control flags (required, requisite, sufficient, optional).

Common modules: pam_unix (local passwords), pam_sss (SSSD/AD), pam_faillock (lockout), pam_pwquality (password strength), pam_google_authenticator/pam_u2f (MFA).

A mistake can lock everyone out: keep a root session open while testing, and test with pamtester or a second login.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A PAM result shows the configured stack returned a status to a participating application, but it does not show the application enforced it correctly or non-PAM paths are controlled.

In depth

PAM (Pluggable Authentication Modules) is the framework Linux uses to authenticate users and manage sessions for services such as SSH, sudo and login. Modules stacked in /etc/pam.d/ add features — MFA, password quality rules, account lockout, centralised authentication.

ModulePurpose
pam_unixLocal passwords
pam_sssCentral authentication via SSSD (AD/LDAP/IPA)
pam_faillockLockout after failed attempts
pam_pwqualityPassword strength rules
pam_google_authenticator, pam_u2fTOTP / FIDO2 MFA
pam_limitsResource limits

Test PAM changes in a separate session before logging out — a broken PAM stack can lock everyone out. Use distribution tools (authselect, pam-auth-update) where available instead of editing files by hand.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPlatform and workload security current

Authoritative/upstream documentation reviewed for bounded claims in Linux Security → PAM. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/security/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
Pluggable Authentication ModulesLinux PAM stackPAM authentication
Embedded reference data

Quick lookup tables

Linux Security → PAM proof map

Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → PAM.

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure
Confirmation

Confirm action

Continue?