LPIC-2 Exam 202 (Linux Engineer) — Question 54
How must Samba be configured such that it can check CIFS passwords against those found in /etc/passwd and /etc/shadow?
Answer options
- A. Set the parameters "encrypt passwords = yes" and "password file = /etc/passwd"
- B. Set the parameters "encrypt passwords = yes", "password file = /etc/passwd" and "password algorithm = crypt"
- C. Delete the smbpasswd file and create a symbolic link to the passwd and shadow file
- D. It is not possible for Samba to use /etc/passwd and /etc/shadow directly
- E. Run smbpasswd to convert /etc/passwd and /etc/shadow to a Samba password file
Correct answer: D
Explanation
The correct answer is D because Samba does not have the capability to directly use the /etc/passwd and /etc/shadow files for authentication. Options A, B, and C propose methods that are not feasible, while option E suggests converting files, which is unnecessary when Samba cannot use them directly.