[Samba] nmbd don't start but gives no error (termux)

Fabrice Verrac f0rhum at free.fr
Thu Mar 27 13:20:22 UTC 2025


On Wed, 26 Mar 2025 15:48:04
Rowland Penny via samba <samba at lists.samba.org <https://lists.samba.org/mailman/listinfo/samba>> wrote: 
> On Wed, 26 Mar 2025 14:28:31 +0100 
> f0rhum via samba <samba at lists.samba.org <https://lists.samba.org/mailman/listinfo/samba>> wrote: 
>>
>> The problem is I have to connect with the name because the server ip
>> will always change...
>> 
> First, you need to identify just what the maximum SMB protocol your
> camera is capable of, from the sound of it, it is SMBv2, if this is the
> case, then you do not need nmbd on your phone, it is only used for
> NetBIOS and that requires SMBv1 (known as NT1 on Samba).
>
> Secondly, do not worry about the 'GSE' line, that is about kerberos and
> you are not using kerberos.
Nice! I'm retired so I don't have to deal anymore with AD.
>
> From your link it appears you are running Samba as a standalone server
> and provide the version of Samba you are running in termux is >= 4.11.0
> , then you will be using SMBv2.

Thank you so much Rowland for such a quick and skilled advice
At a first glance I thought you misread my server 4.16.11 version, but after checking the 4.11.0 change log I learn this is where SMB1 was removed from defauts.
Reading you I hope I'm understanding correctly that my mistake was to beleive that name resolution when nothing around dns or hosts file is available relied on SMB1, which I thought *was* a synonym with netbios.
So now I guess I can fall back to removing too my NT1 things in smbclient, and also forget everything/everywhere about ports below 445.
>
> Provided that:
> A) Samba running on termux works as it does on Linux
> B) It is using SMBv2
> C) Your camera users SMBV2
>
> Then the following smb.conf should work:
>
> [global]
> netbios name = MYPHONE
> ...
> with SMBv1, removed.
>
> I suggest you start by tryin...
...
> If this all works, then disconnect and try to connect from the camera.
>
> Good luck
>
> Rowland

I'll check all this when I get out of the surgical block if I ever get awake ;-)
I'll try with replacing wlan0 with wlan* in interfaces parameter because wlan1 is the interface for the hotspot, wlan0 being the one for the phone as LAN client, which won't have an IP when I'm in the fields.
And I guess the next step is to try with netbios name isn't it?
Have a nice day
Fabrice 


More information about the samba mailing list