[Samba] [4.13.13-Debian] " reopen_one_log: Unable to open new log file '/var/log/samba/': Is a directory"?
Rowland Penny
rpenny at samba.org
Wed Jan 11 10:15:42 UTC 2023
On 11/01/2023 09:55, Michael Tokarev via samba wrote:
> 11.01.2023 12:48, Gilles via samba wrote:
>
>> [2023/01/11 10:04:49.943723, 0]
>> ../../lib/util/debug.c:1104(reopen_one_log)
>> reopen_one_log: Unable to open new log file '/var/log/samba/': Is a
>> directory
>
>> smb.conf: log file = /var/log/samba/%m
>
> some daemons work without client information, ie, they're not
> client-specific.
> These will try to open log files too. Without client info, "%m" expands to
> nothing, to an empty string. So you'll have the error message like that.
>
> Fix your log file setting. Check what's the default for this.
>
> /mjt
>
>
>
There isn't a default and '%m' is supposed to work.
I think we need to see how the OP is running Samba, to do this, we need
the output of 'testparm -s' or 'samba-tool testparm' if it is a DC
(which it shouldn't be, because it looks like nmbd is running).
Rowland
More information about the samba
mailing list