Skip to main content
InterviewHubPRO
Section Overview
Q50

Question 50 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

100%
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:
    1. auth: Verifies user identity (password, MFA token).
    2. account: Verifies account validity (expiration, allowed login hours).
    3. password: Handles password updates and complexity enforcement (pam_pwquality).
    4. session: Configures environment prior to login (mount home directory, set resource limits via pam_limits).