[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:56:40 UTC 2023



On 11/01/2023 10:45, Michael Tokarev via samba wrote:
> 11.01.2023 13:30, Gilles via samba пишет:
>> On 11/01/2023 11:23, Michael Tokarev via samba wrote:
>>> /var/log/samba/%m is *not* supposed to work, exactly the way it 
>>> doesn't work in the OP case.  The only thing needed for him is to fix 
>>> the log file parameter as I suggested to fix the issue.
>>
>> What should I use instead?
> 
> eg, /var/log/samba/log.%m or anything else which will
> work in case of empty %m.
> 
> /mjt
> 
> 

The first example would create the logfile '/var/log/samba/log.'
This is because netbios is disabled and hence nmbd cannot obtain the 
information to fill in the '%m'

What would work is /var/log/samba/log.log or anything that didn't use a 
variable substitution.

Rowland




More information about the samba mailing list