LPIC-3 Exam 300 (Mixed Environments) — Question 10
In order to generate an individual log file for each of the machines connecting to a Samba server, which of the following statements must be used in the Samba configuration file?
Answer options
- A. log file = /var/log/samba/log.%c
- B. log file = /var/log/samba/log.%M
- C. log file = /var/log/samba/log.%m
- D. log file = /var/log/samba/log.%I
Correct answer: C
Explanation
The correct answer is C because the '%m' variable in the log file path specifies the NetBIOS name of the connecting machine, allowing for individual log files. Options A, B, and D refer to different logging variables, which do not provide the machine-specific logging needed in this scenario.