LPIC-2 Exam 202 (Linux Engineer) — Question 107
Which of the following lines is valid in a configuration file in /etc/pam.d/?
Answer options
- A. auth required pam_unix.so try_first_pass nullok
- B. auth try_first_pass nullok, require pam_unix.so
- C. auth required:pam_unix.so(try_first_pass nullok)
- D. auth pam_unix.so(required try_first_pass nullok)
Correct answer: A
Explanation
Option A is correct as it follows the proper syntax for PAM configuration, specifying 'required' before the module. The other options (B, C, D) are incorrectly formatted, either placing 'require' after the parameters or using incorrect punctuation and syntax.