Deal of The Day! 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 3 Question 23 Discussion

Actual exam question for LPI's 300-300 exam
Question #: 23
Topic #: 3
[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:

Providencia
2 days ago
Haha, this question is a real head-scratcher! I'm just hoping I don't end up with a log file named 'log.%c' - that would be a real mess!
upvoted 0 times
...
Martina
4 days ago
I'm going to go with D. The %I variable represents the client IP address, and that seems like a logical choice for identifying individual machines in the logs.
upvoted 0 times
...
Leontine
8 days ago
Hmm, I'm leaning towards B. The %M variable represents the machine's IP address, which could also work for generating unique log files.
upvoted 0 times
...
Gianna
12 days ago
I'm pretty sure it's A. The %m variable represents the machine name, which seems like the best way to generate individual log files.
upvoted 0 times
...

Save Cancel