Linux OS Internals (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Linux PAM (Pluggable Authentication Modules): How SSH, Sudo, and system authentication pipelines work.
senior LevelPipesSecurity & AuthCI/CD & DevOps
In Simple Words:
PAM decouples system applications (sshd, sudo, login) from specific authentication technologies (local /etc/shadow, LDAP, Kerberos, Duo MFA, YubiKey FIDO2).
- Configuration files reside in
/etc/pam.d/(/etc/pam.d/sshd,/etc/pam.d/sudo). - Four Management Modules:
auth: Verifies user identity (password, MFA token).account: Verifies account validity (expiration, allowed login hours).password: Handles password updates and complexity enforcement (pam_pwquality).session: Configures environment prior to login (mount home directory, set resource limits viapam_limits).