[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:38:48 UTC 2023



On 11/01/2023 10:28, Gilles via samba wrote:
> On 11/01/2023 11:15, Rowland Penny via samba wrote:
>> Fix your log file setting. Check what's the default for this.
>>
>> 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).
> 
> It's a stand-alone server.
> 
> Here's the output from testparm -s:
> =============
> Load smb config files from /etc/samba/smb.conf
> Loaded services file OK.
> Weak crypto is allowed
> Server role: ROLE_STANDALONE
> 
> # Global parameters
> [global]
>          bind interfaces only = Yes
>          disable netbios = Yes
>          disable spoolss = Yes
>          guest account = www-data
>          interfaces = lo enp0s20
>          load printers = No
>          log file = /var/log/samba/%m
>          map to guest = Bad User
>          netbios name = SAMBA
>          printcap name = /dev/null
>          server role = standalone server
>          server string = Some great server
>          show add printer wizard = No
>          idmap config * : backend = tdb
>          hosts allow = 127.0.0.1 192.168.0.0/24
>          hosts deny = 0.0.0.0/0
>          printing = bsd
> 
> 
> [guest]
>          comment = Some great directory
>          force create mode = 0660
>          force directory mode = 0770
>          guest ok = Yes
>          guest only = Yes
>          path = /var/www/html/
>          read only = No
> =============
> 
> 

Having now seen the smb.conf, the fix is easy ;-)

In smb.conf there is:  disable netbios = Yes

This means that NetBIOS isn't being used, the only reason to run nmbd is 
for NetBIOS, so turn nmbd off and stop it ever running again.

Rowland




More information about the samba mailing list