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 4 Question 9 Discussion

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

Lauran
4 months ago
Wait, wait, wait... you're telling me the log file name has to be unique for each machine? What is this, the Stone Age? I thought we were living in the 21st century, where we have things like 'big data' and 'analytics'!
upvoted 0 times
...
Luis
4 months ago
Option C? Are you kidding me? The %r variable is for the remote machine name, not the local machine. That's just plain wrong.
upvoted 0 times
Willow
3 months ago
Exactly, %r is for the remote machine name, not the local one.
upvoted 0 times
...
Ernie
3 months ago
Yeah, option C is definitely incorrect. It's not for the local machine name.
upvoted 0 times
...
Alise
3 months ago
E) log file = /var/log/samba/log.%c
upvoted 0 times
...
Precious
3 months ago
D) log file = /var/log/samba/log.%I
upvoted 0 times
...
Kerry
3 months ago
B) log file = /var/log/samba/log.%M
upvoted 0 times
...
Afton
4 months ago
A) log file = /var/log/samba/log.%m
upvoted 0 times
...
...
Isabella
4 months ago
Option E? Really? Who would use the %c variable for the log file name? That's just asking for chaos and confusion.
upvoted 0 times
...
Rosio
4 months ago
Hmm, I'd go with Option D. The %I variable is for the IP address, and that's gotta be unique for each machine, right? Makes sense to me.
upvoted 0 times
Odette
3 months ago
I agree with both of you. Option D seems like the best choice for generating individual log files for each machine.
upvoted 0 times
...
Jerilyn
4 months ago
I'm not sure, but I think Option A might be the right choice. It mentions %m which could stand for machine.
upvoted 0 times
...
Domingo
4 months ago
I think Option D is correct too. Each machine will have a unique IP address.
upvoted 0 times
...
...
Cassie
4 months ago
I'm pretty sure it's Option B. The %M variable stands for the IP address of the client, which seems like a logical choice for the log file name.
upvoted 0 times
Ernest
3 months ago
I'm not sure, but I think Option E could also work. The %c variable represents the client's NetBIOS name, which could be useful for identifying logs.
upvoted 0 times
...
Elina
4 months ago
I agree with you, Option B makes the most sense. Using the IP address of the client in the log file name would be helpful for organization.
upvoted 0 times
...
Jerrod
4 months ago
I believe it's Option D. The %I variable stands for the IP address of the client, which would be more appropriate for the log file name.
upvoted 0 times
...
Ma
4 months ago
I think it's actually Option A. The %m variable represents the NetBIOS name of the client machine.
upvoted 0 times
...
...
Carin
5 months ago
I think B) log file = /var/log/samba/log.%M is the correct answer because %M represents the NetBIOS name
upvoted 0 times
...
Hollis
5 months ago
Option A is the correct answer. The %m variable represents the NetBIOS name of the client machine, which is perfect for generating individual log files.
upvoted 0 times
Jerrod
3 months ago
Great, so we can use that to generate individual log files for each machine connecting to the Samba server.
upvoted 0 times
...
Freeman
3 months ago
That makes sense, %m represents the NetBIOS name of the client machine.
upvoted 0 times
...
Youlanda
3 months ago
I think the answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
Sage
4 months ago
I agree, it's important to have separate logs for each machine connecting to the server.
upvoted 0 times
...
Xenia
4 months ago
That makes sense, using the NetBIOS name for individual log files is a good idea.
upvoted 0 times
...
Emogene
4 months ago
I think the answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...
...
Jaclyn
5 months ago
I'm not sure, but I think A) makes sense because %m represents the machine name
upvoted 0 times
...
Tesha
5 months ago
I disagree, I believe the correct answer is D) log file = /var/log/samba/log.%I
upvoted 0 times
...
Oliva
5 months ago
I think the answer is A) log file = /var/log/samba/log.%m
upvoted 0 times
...

Save Cancel