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
IPC$ connections for DCERPC e.g. in winbindd, are handled by the client ipc min protocol option. 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

samba - Available min max values for SMB protocol - Unix & Linux Stack Exchange
I am running Samba 3.6 in SLES 11.4. I recently added in /etc/samba/smb.conf in the [global] section the following min protocol = SMB2 max protocol = SMB2 this was done to allow communication with More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
July 24, 2018
Can't set server min protocol to any value in CLI
Hi, I'm using Cobia 23.10.1 (updated recently) and trying to set `server min protocol` in auxillarry parameters to 3_11 using cli with the command sharing smb update ID (where ID is my share id). I've tried adding `server min protocol = SMB3_11` per smb.conf manpage, then `server min protocol =... More on truenas.com
๐ŸŒ truenas.com
4
December 22, 2023
Solved - Per-host "min protocol" in samba? | The FreeBSD Forums
I've recently set our samba server at work to use "server min protocol = SMB2", as some of our Windows clients were using older dialects to communicate. Samba 4.10 (and possibly earlier versions) seem to have some issues with the older standards, and there are security benefits to having this... More on forums.freebsd.org
๐ŸŒ forums.freebsd.org
October 7, 2019
networking - Set SMB2 protocol in Samba 3.6.6 - Unix & Linux Stack Exchange
SLES 11.4 is old enough for its Samba to default to SMBv1 only. You've set both client min protocol and client max protocol, which only affect Samba when it's acting as a client, like smbclient. For server-side, you've only set server min protocol, so the server max protocol is still defaulting ... More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
November 7, 2018
๐ŸŒ
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 - However, you must disable SMBv1 on Samba server running on Linux or Unix-like system. Let us see how to disable SMBv1 on a Linux or Unix like systems. Samba is an open-source implementation of the SMB or CIFS protocol, which allows PC-compatible machines (especially Windows oese) to share files, printers, and other information with Linux and vice-versa. Edit smb.conf file, run: $ sudo vi /etc/samba/smb.conf Find the [global] section and append the following line: min protocol = SMB2 Here is my updated file:
๐ŸŒ
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.
Top answer
1 of 1
16

From the man page for the configuration file for the Samba suite in the "client max protocol" section:

Possible values are :

  • CORE: Earliest version. No concept of user names.
  • COREPLUS: Slight improvements on CORE for efficiency.
  • LANMAN1: First modern version of the protocol. Long filename support.
  • LANMAN2: Updates to Lanman1 protocol.
  • NT1: Current up to date version of the protocol. Used by Windows NT. Known as CIFS.
  • SMB2: Re-implementation of the SMB protocol. Used by Windows Vista and later versions of Windows. SMB2 has sub protocols available.
  • SMB2_02: The earliest SMB2 version.
  • SMB2_10: Windows 7 SMB2 version.
  • SMB2_22: Early Windows 8 SMB2 version.
  • SMB2_24: Windows 8 beta SMB2 version.

By default SMB2 selects the SMB2_10 variant.

  • SMB3: The same as SMB2. Used by Windows 8. SMB3 has sub protocols available.
  • SMB3_00: Windows 8 SMB3 version. (mostly the same as SMB2_24)
  • SMB3_02: Windows 8.1 SMB3 version.
  • SMB3_10: early Windows 10 technical preview SMB3 version.
  • SMB3_11: Windows 10 technical preview SMB3 version (maybe final).

By default SMB3 selects the SMB3_11 variant.

Normally this option should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropriate protocol.

The value default refers to SMB3_11.

Adding clarification from A.B in the comments:

wiki.samba.org/index.php/Samba3/SMB2 states "Samba 3.6 added basic support for SMB2.0", "Basic support for SMB 2.1 was added in Samba 4.0.0", "Basic support for SMB3 is included in Samba 4.0.0 and later."

๐ŸŒ
ArchWiki
wiki.archlinux.org โ€บ title โ€บ Samba
Samba - ArchWiki
May 26, 2026 - Tip Use server min protocol = SMB3 when clients should only connect using the latest SMB3 protocol, e.g.
๐ŸŒ
TrueNAS Community
truenas.com โ€บ forums โ€บ truenas scale โ€บ truenas scale cobia
Can't set server min protocol to any value in CLI | TrueNAS Community
December 22, 2023 - Also, in case someone else needs to edit global smb configuration, you set a parameter by launching cli and then running service smb update smb_options="server min protocol = SMB3_11" where you replace server min protocol = SMB3_11 with whatever option you need set.
Find elsewhere
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ projects โ€บ networking and servers
How to run an earlier Samba? - Raspberry Pi Forums
February 7, 2022 - server min protocol = NT1 client min protocol = NT1 ntlm auth = yes It would be better if you learned how to use Samba with SMBv2, SMBv1 is going away, possibly at the 4.17.0 release, but more likely at 4.18.0 You have been warned.
๐ŸŒ
FreeBSD
forums.freebsd.org โ€บ server and networking โ€บ web and network services
Solved - Per-host "min protocol" in samba? | The FreeBSD Forums
October 7, 2019 - I've recently set our samba server at work to use "server min protocol = SMB2", as some of our Windows clients were using older dialects to communicate. Samba 4.10 (and possibly earlier versions) seem to have some issues with the older standards, and there are security benefits to having this...
๐ŸŒ
Group Policy Administrative Templates
admx.help
server min protocol
This setting controls the minimum protocol version that the server will allow the client to use. Normally this option should not be set as the automatic negotiation phase in the SMB protocol takes care of choosing the appropriate protocol unless you have legacy clients which are SMB1 capable only.
Top answer
1 of 2
1

SLES 11.4 is old enough for its Samba to default to SMBv1 only. You've set both client min protocol and client max protocol, which only affect Samba when it's acting as a client, like smbclient.

For server-side, you've only set server min protocol, so the server max protocol is still defaulting to SMBv1. And because now min protocol is higher than max, smbd actually cannot allow any protocol at all.

The facts that SLES 11.4's Samba is so old and its SMBv3 support seems to be buggy (as you discovered) caused us to make it a priority at work to upgrade any Samba servers that were still running SLES 11.4 to SLES 12 or newer.

2 of 2
0

running Samba-3.6.3 in SLES 11.4 which has kernel 3.0, my global section is this and I know SMB2 works because windows 10 client will NOT connect via SMB1 the minimum is SMB2 for win10 out of the box.

Note that if you set Min Protocol = SMB2 then if your clients are Windows 7 it will not work for them... at least i did not figure it out troubleshooting on the windows side I think for Win7 it is default SMB1 unless you manually configure something in win7 to say do SMB2.

And for whatever reason setting max protocol = SMB3 caused things not to work for me thus I have SMB2 specified.

[global]
    min protocol = SMB2
    max protocol = SMB2
    workgroup = workgroup
    passdb backend = tdbsam
    map to guest = Never
    usershare allow guests = No
    add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain master = No
    security = user
    wins support = No
    server signing = auto
    name resolve order = lmhosts bcast host
    printing = bsd
    printcap name = /dev/null
    log level = 2 auth:10 auth_audit:3 auth_json_audit:3 winbind:5
    max log size = 1000000

and a sample of a share that i use

[data1]
    create mask = 660
    directory mask = 770
    inherit acls = Yes
    path = /data1
    read only = No

you should not need to do anything in /etc/fstab other than mounting your storage resource as you normally would. Then once mounted make sure access permissions of that folder... chmod 777 /data1 in my example, are open for starters, then when working go ahead and remove world permissions and change group ownership and permissions as you need.

๐ŸŒ
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)?

๐ŸŒ
Ixsystems
redmine.ixsystems.com โ€บ issues โ€บ 24334
Bug #24334: SBM server errors using min protocol SMB2 - FreeNAS - iXsystems & FreeNAS Redmine
March 11, 2020 - Windows 2008 clients seem use a maximum version of SMBv2.02, version SMBv2.10 appears to not be implemented. Setting the FreeNAS server to "SMB2_02" for the minimum protocol fixed the issue with Windows clients, and Linux clients can also mount the share with the "vers=2.0" option.
๐ŸŒ
TrueNAS Community
truenas.com โ€บ forums โ€บ archives โ€บ general help โ€บ operation and performance
Min protocol not allowed in SMB share options | TrueNAS Community
September 13, 2021 - This is actually an error being passed up from libsmbconf (from Samba). `server min protocol` is a global parameter and may not be set in a share.
๐ŸŒ
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.
๐ŸŒ
LinuxQuestions.org
linuxquestions.org โ€บ questions โ€บ linux-server-73 โ€บ samba-min-protocol-seems-to-be-ignored-4175619249
Samba min protocol seems to be ignored
December 9, 2017 - I'm trying to force samba server to use a minimal smb protocol of 2.1 (due to security risks with lower versions) so I've edited my smb.conf file to