The smb-protocols nmap script checks to see which smb dialects are present on the Samba server.

client min protocol sets the minimum smb dialect that server can use to connect to another server not the minimum dialects that a client to this server can use.

By default the version of samba used in Ubuntu 18.04 sets the server min to NT1 ( smbv1 ) and the max to SMBv3.

If you want to restrict access to this server to SMB3 and SMB3 only you need to set the server min protocol:

server min protocol = SMB3

*Note: there are sub-variants to this dialect:

SMB3_00: Windows 8

SMB3_02: Windows 8.1

SMB3_10: early Windows 10

SMB3_11: Windows 10

By default SMB3 in smb.conf selects the SMB3_11 variant.*

Answer from Morbius1 on askubuntu.com
๐ŸŒ
Samba
samba.org โ€บ samba โ€บ docs โ€บ current โ€บ man-html โ€บ smb.conf.5.html
smb.conf
Note that most command line tools support --option='client min protocol=NT1', so it may not be required to enable SMB1 protocols globally in smb.conf.
Discussions

security - How can I enable Samba 1 authentication for a single share? - Unix & Linux Stack Exchange
I know smb1 it's unsecure so I'm guessing if there's the option to use that kind of authentication only for the share I use to receive scans from the machine. Is it possible? Thanks. ... Do you mean NTLM v1 authentication (ntlm auth = yes alias ntlm auth = ntlmv1-permitted) or SMB protocol v1 (server min protocol = NT1)? With a new enough version of Samba... More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
August 31, 2021
[Question] Set preferred samba protocol version
Current versions of samba should default to smb protcol version 3.11 without any enforced config and smb verson 1 is disabled by default and obsolete with samba. That mentioned there are some desirable settings you can set in smb.conf globally. I've been using the generic standalone config below for several years for a samba server that is not used as a cups print server or with ldap user auth or as an ADC. [global] server string = hostname client NTLMv2 auth = Yes load printers = No printcap name = /dev/null local master = no ldap ssl = no ea support = Yes smb encrypt = desired You can view your samba user connection status by typing smbstatus as the root user and that will display the smb version used as well as encryption algorithm used. Currently my system is using samba 4.11.11 More on reddit.com
๐ŸŒ r/linuxquestions
2
6
August 12, 2020
state of MacOS SMB
Any insight into why our SMB connection to Mac Mini server will just drop and disappear 2 or 3 times a week, forcing us to reboot the server to get SMB working again? More on reddit.com
๐ŸŒ r/MacOS
118
94
December 28, 2023
Don't forget to enable SMB3

I forgot to mention, SMB3 also lets you use Windows Backup using the NAS as a destination. With SMB2, the backup fails. SMB1 also works, but then again, performance is lacking along with security.

More on reddit.com
๐ŸŒ r/synology
14
23
May 15, 2015
๐ŸŒ
nixCraft
cyberciti.biz โ€บ nixcraft โ€บ howto โ€บ samba (smb/cifs) โ€บ how to configure samba to use smbv2 and disable smbv1 on linux or unix
How to configure Samba to use SMBv2 and disable SMBv1 on Linux or Unix - nixCraft
May 12, 2021 - SMB1 was disabled on windows server because of security concerns like wannacry. And โ€œmax protocolโ€ was not set explicitly on samba server. So โ€œmax protocolโ€ was NT1(SMB1) as default. I set โ€œmin protocol = SMB2โ€ on samba server but client couldnโ€™t negotiate with server on protocol ...
๐ŸŒ
Linux Mint Forums
forums.linuxmint.com โ€บ board index โ€บ main edition support โ€บ networking
Samba configuration - NT1 vs others - Linux Mint Forums
December 22, 2022 - To connect to my FreeBSD server from Linux Mint 21.1 64bit Xfce I added : client min protocol = NT1 server min protocol = NT1 below the line 'workgroup = WORKGROUP' line This worked, I can now connect to the Samba (version 4.12.15) running on the FreeBSD server.
๐ŸŒ
SambaWiki
wiki.samba.org โ€บ index.php โ€บ Samba_4.11_Features_added โ€บ changed
Samba 4.11 Features added/changed - SambaWiki
The defaults of 'client min protocol' and 'server min protocol' have been changed to SMB2_02. This means clients without support for SMB2 or SMB3 are no longer able to connect to smbd (by default). It also means client tools like smbclient and other, as well as applications making use of libsmbclient are no longer able to connect to servers without SMB2 or SMB3 support (by default). It's still possible to allow SMB1 dialects, e.g.
Find elsewhere
๐ŸŒ
Gen
support.gen.uk โ€บ kb โ€บ faq.php
Setting SMB Versions in Samba Server - GEN HelpDesk
- client โ€ฆ protects any outbound connections Samba makes (e.g. to a Windows DFS or a backup target). ... [global] # ----- Server side ----- server min protocol = SMB2 # reject SMB1 (CIFS) server max protocol = SMB3_11 # use the latest SMB3 version you support # ----- Client side ----- client min protocol = SMB2 client max protocol = SMB3_11
๐ŸŒ
Samba
samba.org โ€บ samba โ€บ history โ€บ samba-4.11.0.html
Samba 4.11.0 - Release Notes
For more details, see: https://wiki.samba.org/index.php/Downgrading_an_Active_Directory_DC When either upgrading or downgrading, users should also avoid making any database modifications between installing the new Samba packages and starting the samba executable. SMB1 is disabled by default --------------------------- The defaults of 'client min protocol' and 'server min protocol' have been changed to SMB2_02.
๐ŸŒ
Arch Linux Forums
bbs.archlinux.org โ€บ viewtopic.php
Samba: how to access both SMB1 as well as SMB2+3 shares? / Networking, Server, and Protection / Arch Linux Forums
November 15, 2017 - ... If you have clients that only support SMBv1 you're kinda screwed (afaiu, windows 10 completely removed support with some recent patch - might be re-activatable, though) You'll have to add "server min protocol = NT1" (to the samba server, default is now SMB2 because NT1 has some "slight" ...
๐ŸŒ
ManageEngine
manageengine.com โ€บ vulnerability-management โ€บ misconfiguration โ€บ linux-insecure-services โ€บ how-to-disable-smbv1-in-linux.html
How to disable SMB v1 in Linux?
Samba will advertise the file systems and directories via the Server Message Block (SMB) protocol. SMB v1 is a an insecure protocol that's used as a vector to carry out Wannacry ransomware, so setting SMB2 as min protocol in /etc/samba/smb.conf will not allow SMB v1 for communication between ...
๐ŸŒ
KDE
phabricator.kde.org โ€บ D18878
โš™ D18878 Force NT1 protocol when listing smb:// network [work in progress]
Samba 4.8 changed default 'client max protocol' from NT1 to SMB3, together with fixes of Badlock, it broke browsing smb:// with default settings, because only NT1 (SMB1) protocol can browse network. Samba 4.10 made it possible to set min/max protocol version via libsmbclient API.
๐ŸŒ
Reddit
reddit.com โ€บ r/linuxquestions โ€บ [question] set preferred samba protocol version
r/linuxquestions on Reddit: [Question] Set preferred samba protocol version
August 12, 2020 -

There are multiple SMB protocol versions that can be set used, by editing /etc/samba/smb.conf

[global]
    min protocol = SMB2

I can set a minimum, and maximum version for my system. However, this could leave a range of versions that are actually used.

Is it possible to set a preferred version, which is used if both the client and server support this version?
Or is there a way to get SMB to use the latest compatible version, not the minimum (seeing as it defaults to version 1.0)?

๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ projects โ€บ networking and servers
How to run an earlier Samba? - Raspberry Pi Forums
February 7, 2022 - Mon Feb 07, 2022 6:32 pm The Samba provided with Bullseye is still capable of using SMBv1, it is just turned off by default. If you must use SMBv1 (and I do not recommend it), just add these lines to your smb.conf: ... server min protocol = NT1 client min protocol = NT1 ntlm auth = yes Thank you for that.