nerdexam
LPI

300-300 · Question #23

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?

The correct answer is A. log file = /var/log/samba/log.%m. Individual Log Files: 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…

300.6 Troubleshooting

Question

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?

Options

  • Alog file = /var/log/samba/log.%m
  • Blog file = /var/log/samba/log.%M
  • Clog file = /var/log/samba/log.%r
  • Dlog file = /var/log/samba/log.%I
  • Elog file = /var/log/samba/log.%c

How the community answered

(28 responses)
  • A
    89% (25)
  • D
    7% (2)
  • E
    4% (1)

Explanation

Individual Log Files: 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.

Topics

#Samba logging#log file#smb.conf macros#%m variable

Community Discussion

No community discussion yet for this question.

Full 300-300 Practice