Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 300-300 Topic 1 Question 21 Discussion

Actual exam question for LPI's 300-300 exam
Question #: 21
Topic #: 1
[All 300-300 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Individual Log Files:

A . log file = /var/log/samba/log.%m: To generate an individual log file for each machine connecting to a Samba server, the %m variable is used in the log file path. This variable represents the machine name of the connecting client. Thus, the configuration line log file = /var/log/samba/log.%m creates a unique log file for each client machine.


Samba smb.conf manual

Logging configurations in Samba

Contribute your Thoughts:

Chantay
5 hours ago
I disagree, I believe the correct answer is D) log file = /var/log/samba/log.%I as %I represents the IP address of the machine.
upvoted 0 times
...
Trevor
3 days ago
I think the answer is A) log file = /var/log/samba/log.%m because %m represents the machine name.
upvoted 0 times
...

Save Cancel