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 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:

Aja
20 days ago
I'm pretty sure the answer is B. %M seems more logical for the machine's hostname.
upvoted 0 times
...
Latricia
21 days ago
The correct answer is A. Using %m will generate a log file for each machine based on the machine's NetBIOS name.
upvoted 0 times
Reed
3 days ago
I think the answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Meaghan
9 days ago
No, the correct answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Pete
11 days ago
I think the answer is B) log file = /var/log/samba/log.%M
upvoted 0 times
...
...
Wynell
25 days ago
I see your points, but I still think E) log file = /var/log/samba/log.%c is the best choice because %c represents the client's NetBIOS name.
upvoted 0 times
...
Boris
27 days ago
I'm not sure, but I think C) log file = /var/log/samba/log.%r could also be a valid option as %r represents the remote username.
upvoted 0 times
...
Chantay
1 months 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
1 months 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