202-450 practice question 4 of 25

Which of the following PAM modules allows the system administrator to use an arbitrary file containing a list of user and group names with restrictions on the system resources available to them?

Full set: 119 questions
Answer options
A: pam_filter
B: pam_limits Correct answer
C: pam_listfile
D: pam_unix
Correct Answer:
B. pam_limits
Explanation

The pamlimits module is specifically designed to set limits on system resources for users during the session management phase. It reads its configuration from /etc/security/limits.conf and files within the /etc/security/limits.d/ directory. These files allow administrators to define resource limits (e.g., max processes, open files, memory usage) for specific users, groups, or all users using a simple, readable syntax. This directly matches the functionality described in the question.

Why Incorrect

A. pamfilter is used to filter environment variables or command-line arguments for services, not to set resource limits.
C. pamlistfile provides a way to deny or allow services to users based on their presence in a specified file, not for resource control.
D. pamunix is primarily used for traditional password-based authentication and account management, not for setting resource limits.

References

- Linux-PAM project. (n.d.). The Linux-PAM System Administrators' Guide. Chapter 5, The Modules. Retrieved from https://github.com/linux-pam/linux-pam/blob/master/doc/sag/Linux-PAMSAG.txt (This guide details the function of standard PAM modules).

- pamlimits(8) Linux manual page. Section: NAME. "pamlimits - PAM module to set resource limits".

- Red Hat Enterprise Linux 8 Documentation. (2023). Chapter 6. Limiting user's access to system services and resources. Section 6.2, "Setting limits for users with the pamlimits module".

Scroll to Top