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:

Domitila
29 days ago
As a Samba expert, I can confidently say that A is the way to go. %m is the standard variable for this use case.
upvoted 0 times
...
Dorothy
1 months ago
Haha, E is clearly a joke answer. Who would use the machine's CPU architecture for a log file name?
upvoted 0 times
Izetta
8 days ago
B) log file = /var/log/samba/log.%M
upvoted 0 times
...
Rolland
15 days ago
A) log file = /var/log/samba/log.%m
upvoted 0 times
...
...
Callie
1 months ago
Hmm, I'm leaning towards D. %I should give the IP address of the connecting machine, right?
upvoted 0 times
Rebecka
2 days ago
I think D is correct. It should give the IP address of the connecting machine.
upvoted 0 times
...
Leonard
3 days ago
E) log file = /var/log/samba/log.%c
upvoted 0 times
...
Lorriane
6 days ago
D) log file = /var/log/samba/log.%I
upvoted 0 times
...
Sherita
8 days ago
C) log file = /var/log/samba/log.%r
upvoted 0 times
...
Huey
14 days ago
B) log file = /var/log/samba/log.%M
upvoted 0 times
...
Micah
22 days ago
A) log file = /var/log/samba/log.%m
upvoted 0 times
...
...
Aja
2 months ago
I'm pretty sure the answer is B. %M seems more logical for the machine's hostname.
upvoted 0 times
...
Latricia
2 months 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
Trina
13 days ago
Thanks for clarifying, I'll make sure to use %m in the Samba configuration file.
upvoted 0 times
...
Xuan
15 days ago
I wasn't sure between A and D, but now I see why %m is the correct option.
upvoted 0 times
...
Kasandra
22 days ago
That makes sense, using %m will create individual log files for each machine.
upvoted 0 times
...
Reed
1 months ago
I think the answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Meaghan
1 months ago
No, the correct answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Pete
1 months ago
I think the answer is B) log file = /var/log/samba/log.%M
upvoted 0 times
...
...
Wynell
2 months 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
2 months 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
2 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
2 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