[Samba] how to know SMB protocol versions supported by a host
Thibault Roulet
thibault.roulet at epfl.ch
Wed Apr 6 12:33:45 UTC 2022
Hi,
Under linux you can run something like this:
nmap -p139 --script smb-protocols <server-address>
it will report something like:
PORT STATE SERVICE
139/tcp open netbios-ssn
Host script results:
| smb-protocols:
| dialects:
| 2.0.2
| 2.1
| 3.0
| 3.0.2
|_ 3.1.1
Cheers.
On 4/6/22 11:32, Piviul via samba wrote:
> I have a little problem using samba; I have a bash script that should
> mount some LAN hosts shares. Some of these hosts support only SMB1
> protocol. If I try to mount a share on a host that support only SMB1
> without specifying the protocol to use or specifying SMB3 or SMB2 the
> mount command seems to freeze; if I specify on the options vers=1 all
> seems to works.
>
> There is a way to know the SMB protocol version supported by a host?
>
> Piviul
>
>
--
Thibault Roulet
More information about the samba
mailing list