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:

Brice
25 days ago
I'm not sure, but I think B) log file = /var/log/samba/log.%M could also be a valid option
upvoted 0 times
...
Ming
26 days ago
I disagree, I believe the correct answer is D) log file = /var/log/samba/log.%I
upvoted 0 times
...
Kati
29 days ago
I think the answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Noah
29 days ago
Ooh, this is a tricky one. I'm torn between A and B, but I think I'll go with A. The machine name just seems like the most reliable way to identify each client.
upvoted 0 times
User 3: I'm not sure, but I'll go with A too.
upvoted 0 times
...
Dorethea
4 days ago
User 2: I agree, using the machine name makes sense.
upvoted 0 times
...
Heike
17 days ago
User 1: I think A is the correct option.
upvoted 0 times
...
...
Providencia
1 months 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
Laine
17 days ago
I know right! I hope I get 'log.%m' for my log file.
upvoted 0 times
...
Azalee
22 days ago
A) log file = /var/log/samba/log.%m
upvoted 0 times
...
...
Martina
1 months 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
2 months 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
Elinore
28 days ago
Actually, I believe D is the right choice. The %I variable represents the client's IP address, which would ensure unique log files for each machine.
upvoted 0 times
...
Dacia
29 days ago
I think A is the correct option. The %m variable represents the machine's NetBIOS name, which would be more suitable for individual log files.
upvoted 0 times
...
...
Gianna
2 months 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
Chandra
29 days ago
User 2: Yeah, that makes sense. A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Vanna
1 months ago
User 1: I think you're right, %m represents the machine name.
upvoted 0 times
...
...

Save Cancel