202-450 practice question 24 of 25

How are PAM modules organized and stored?

Full set: 119 questions
Answer options
A: As plain text files in /etc/security/
B: A statically linked binaries in /etc/pam.d/bin/
C: As Linux kernel modules within the respective sub directory of /lib/modules/
D: As shared object files within the /lib/ directory hierarchy Correct answer
E: As dynamically linked binaries in /usr/lib/pam/sbin/
Correct Answer:
D. As shared object files within the /lib/ directory hierarchy
Explanation

Pluggable Authentication Modules (PAM) are dynamically loaded libraries, not standalone binaries. They are compiled as shared object (.so) files. The system's dynamic linker loads these modules as needed by applications. These files are stored in a specific directory within the /lib/ hierarchy, which varies by distribution and architecture but is commonly /lib/security/, /usr/lib/security/, or /lib/x8664-linux-gnu/security/. This modular design allows system administrators to change authentication methods without modifying or recompiling applications.

Why Incorrect

A. The /etc/security/ directory contains plain-text configuration files that define PAM policies, not the compiled modules themselves.
B. PAM modules are shared libraries loaded at runtime, not statically linked into applications, which is contrary to the modular design principle.
C. Linux kernel modules operate in kernel space for hardware and filesystem interaction; PAM is a user-space authentication framework.
E. The /sbin/ directory contains essential system administration binaries, not shared libraries like PAM modules.

References

1. Linux-PAM project, "The Linux-PAM System Administrators' Guide," Chapter 3: How PAM works. The guide states, "The PAM library looks for the modules in the location /lib/security/ or /lib64/security for 64bit systems."

2. Red Hat Enterprise Linux 8 Documentation, "Configuring and managing identity management," Section 2.1. PAM Architecture. It describes modules as "dynamically loadable objects (.so files)".

3. pam(8) Linux manual page. It describes the PAM framework and the role of modules as dynamically loaded objects.

Scroll to Top