Your message dated Thu, 3 Nov 2022 09:16:23 +0300
with message-id <[email protected]>
and subject line Re: Replace %m by %M?
has caused the Debian Bug report #696634,
regarding samba-common: logfile log.%m no longer supported in samba4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
696634: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696634
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
package: samba-common
version: 2:3.6.6-3

Hi,

As noted in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696149#15, samba4
no longer supports logging to log.%m, so we should provide a new default
logfile in smb.conf.

Cheers,

Ivo

--- End Message ---
--- Begin Message ---
Version: 2:4.13.2+dfsg-1

On Mon, 18 Feb 2019 21:44:18 +0100 Mathieu Parent <[email protected]> wrote:
Hi,

smb.conf manpage has:

%m
the NetBIOS name of the client machine (very useful). This parameter
is not available when Samba listens on port 445, as clients no longer
send this information. If you use this macro in an include statement
on a domain that has a Samba domain controller be sure to set in the
[global] section smb ports = 139. This will cause Samba to not listen
on port 445 and will permit include functionality to function as it
did with Samba 2.x.

%M
the Internet name of the client machine.

So maybe replace %m by %M? (Once buster is released).

Also smb.conf proposes:
Example: log file = /usr/local/samba/var/log.%m

So, what is the correct answer?

Currently, %m works, sort of: instead of a client *name* which it
supplied, samba uses client IP address in this context. Which is
kinda funky but it works. It might be a good idea to use %M in
the default smb.conf explicitly though.  Turning off port 445
seems to be a very bad idea these days.

Let's close this bugreport now (with first 4.13 version, which is
more or less arbitrary). I've updated the default d/smb.conf to use
%M instead of %m for logging.

Thanks,

/mjt

--- End Message ---

Reply via email to