[Samba] nmbd don't start but gives no error (termux)
f0rhum
f0rhum at free.fr
Sun Mar 30 15:58:10 UTC 2025
On 30/03/2025 13:39, Rowland Penny via samba wrote :
> smbclient //PHONE_IP/SHARENAME -Uuser_on_phone%password
>
> If this works, you should find yourself at a Samba prompt 'smb: \>'
>
> If you get this far, you have proved that Samba is working between your
> phone and your client.
>
> A couple of examples:
>
> smbclient -NL 192.168.1.125 -p 4445
>
> Sharename Type Comment
> --------- ---- -------
> server Disk
> IPC$ IPC IPC Service (Samba Client bookstand)
> SMB1 disabled -- no workgroup available
>
> smbclient //192.168.1.125/server -p 4445 -Urowland%xxxxxx
> Try "help" to get a list of possible commands.
> smb: \>
>
> This is to a standalone server with:
>
> disable netbios = yes
> smb ports = 4445
>
> in smb.conf
>
> If you can connect to your phone from your client, you should then try
> to connect to the phone from your camera, if this works, then okay, if
> it doesn't, then it is possible that you require SMBv1 and if so, you
> need to run it everywhere, even if it is insecure.
> Add:
>
> nbt port = 1137
> to your smb.conf on the phone and start the nmbd deamon
> ...
> Rowland
>
Hi Rowland
> disable netbios = yes
> smb ports = 4445
> nbt port = 1137
Does it make sense to have these 3 all together? I can't get the Internet to clearly tell me if I can have name resolution without smb1 and without dns, i.e only having smb2 AND NOT dns.
What about the error smb1 unix extensions unknown parameter ?
I can connect the server's //IP/Share with SMB2 from PC & camera
but I can't from both with //serverName/share even when I have the 3 lines above in smb.conf and server reloaded.
I can't the server as root even that my phone is rooted because the package is not intended for that
Embedded advice in smb.conf comments is to use high ports 4445 [1139] and iptables
I have added these which should allow me to use any clients without specifying "-p port" :
iptables -t nat -A PREROUTING -p udp --destination-port 137 -j REDIRECT --to-port 1137
iptables -t nat -A PREROUTING -p tcp --destination-port 139 -j REDIRECT --to-port 1139
iptables -t nat -A PREROUTING -p tcp --destination-port 445 -j REDIRECT --to-port 4445
More information about the samba
mailing list