Gilles
2023-Jan-11 10:58 UTC
[Samba] [4.13.13-Debian] " reopen_one_log: Unable to open new log file '/var/log/samba/': Is a directory"?
On 11/01/2023 11:38, Rowland Penny via samba wrote:> [global] >> ???????? bind interfaces only = Yes >> ???????? disable netbios = Yes > > 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.If I turn off NetBIOS (which also means "net view" is no long available on Windows), what should I use in the log file instead? log file = /var/log/samba/%m
Michael Tokarev
2023-Jan-11 11:03 UTC
[Samba] [4.13.13-Debian] " reopen_one_log: Unable to open new log file '/var/log/samba/': Is a directory"?
11.01.2023 13:58, Gilles via samba wrote:> On 11/01/2023 11:38, Rowland Penny via samba wrote: >> [global] >>> ???????? bind interfaces only = Yes >>> ???????? disable netbios = Yes >> >> 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. > > If I turn off NetBIOS (which also means "net view" is no long available on Windows), what should I use in the log file instead?There's no need to turn off netbios on windows. Net view, browse lists and that stuff is useful. But windows connects to SMB servers (other windows or samba) using port 445 first, where netbios is not used. An alternative for %m is, for example, %I> log file = /var/log/samba/%mWhy do you repeat the same wrong setting again? :) /mjt
Rowland Penny
2023-Jan-11 11:04 UTC
[Samba] [4.13.13-Debian] " reopen_one_log: Unable to open new log file '/var/log/samba/': Is a directory"?
On 11/01/2023 10:58, Gilles via samba wrote:> On 11/01/2023 11:38, Rowland Penny via samba wrote: >> [global] >>> ???????? bind interfaces only = Yes >>> ???????? disable netbios = Yes >> >> 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. > > If I turn off NetBIOS (which also means "net view" is no long available > on Windows), what should I use in the log file instead? > > log file = /var/log/samba/%m > >You already have turned off NetBIOS (or the major part of it) in your smb.conf I suggest you run wsdd on your standalone server and use Network Discovery on the Windows clients. I take it that your Windows clients are not in a domain. Rowland