QuestionQ58

VerifiedSamba Share Configuration

Which statement should be included in the Samba configuration file so that a separate log file is generated for each machine that connects to the Samba server?

Explanation

Samba supports variable substitution in configuration parameters, and the %m variable expands to the NetBIOS name of the connecting client machine. By setting "log file = /var/log/samba/log.%m", Samba creates a unique log file named after each client's machine name (for example, log.CLIENT1, log.CLIENT2), effectively giving each connecting machine its own log file. This is the documented and standard approach described in the Samba configuration file manual for per-client logging.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!