put in the [global] section of /etc/samba/smb.conf the directive

min protocol = NT1

samba calls SMB1 as NT1.

Answer from Cosmin Miron on Stack Overflow
🌐
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.
🌐
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.
Discussions

windows ce - How to enable SMB1 as default and disable SMB2 and SMB3 on Ubuntu 18.04 Server? - Stack Overflow
I want to share files between Ubuntu 18.04 Server and Windows CE. I need to use only SMB1 protocol to connect to Windows CE because this system only supports SMB1. I tried to configure Samba /etc/... More on stackoverflow.com
🌐 stackoverflow.com
security - How can I enable Samba 1 authentication for a single share? - Unix & Linux Stack Exchange
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, you might need both of these settings. More on unix.stackexchange.com
🌐 unix.stackexchange.com
August 31, 2021
Mageia forum • View topic - [SOLVED] Can't connect to Samba share
The default is NT1. You # can set it to SMB2 if you want experimental SMB2 support. # workgroup = MYGROUP server string = Samba Server Version %v ; netbios name = MYSERVER ; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 ; hosts allow = 127. 192.168.12. 192.168.13. ; max protocol = SMB2 What should I try next? Last edited by kateto on Dec 9th, '21, 08:12, edited 2 times in total. ... client min ... More on forums.mageia.org
🌐 forums.mageia.org
November 23, 2021
Upgraded to Mint 20 - can't mount NAS folders
Might help: https://forums.linuxmint.com/viewtopic.php?f=42&t=322404&p=1831297&hilit=mint+20+samba#p1831297 More on reddit.com
🌐 r/linuxmint
24
53
July 19, 2020
🌐
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 ...
Top answer
1 of 3
14

Disclaimer

The SMBv1 protocol is from the 1983, it is unsecure and thus disabled for a good reason. The SMBv2 protocol has been available since 2006.

Problem Description

I arrived at this question trying to find a solution for the following two problems:

  1. I have an HP printer that can only use the legacy SMBv1 protocol (HP OfficeJet Pro 8620). So my printer refused to connect to the network share and the scan to network feature stopped working.
  2. I tried to use Nautilus to browse the network shares on my own Ubuntu system. And I was getting an error with the message Unable to access location Failed to retrieve share list from server: Invalid Argument:

Solution

After several attempts with different values in the /etc/samba/smb.conf file I was finally able to resolve these problems using these two values:

client min protocol = NT1
server min protocol = NT1

I also found posts that suggested to add this third parameter:

ntlm auth = ntlmv1-permitted

However, on my system this was not necessary.

Explanation

As I understand it, the client min protocol option controls how your system communicates with other SMB servers, changing this option could be useful if your Ubuntu system works as a client and you want to use SMBv1 to access a server. By default (with Samba 4.11) your local Samba installation is configured to require SMBv2 or higher connections.

On the other hand, if your Ubuntu system acts as the server that requires SMBv2 or higher and you have a remote client (such as a printer) that can only understand the legacy SMBv1 protocol, then it seems that changing the client min protocol has no effect. Instead you need to change the server min protocol. This way the client can negotiate SMBv1 with the Samba daemon running on your Ubuntu system.

Side note, you can also pass the client min protocol option to tools such as smbclient, for example:

smbclient -L //<hostname>/<folder> --option='client min protocol=NT1'

Can be used to set the client protocol to SMBv1. This was useful to test the effect of changes in the smb.conf file.

I tried this on Ubuntu 20.04 which comes with samba version 4.11. I have not tested this solution on older Ubuntu distributions.

2 of 3
1

NOTE: This answer relates to version 4.7.6 of samba and for a unique circumstance. Current versions of Samba work differently and setting client max to NT1 would make the max less than the min. To enable SMB1 ( NT1 ) on newer versions of Samba - like the one in Ubuntu 20.04 - use the answer provided by lanoxx below

client max protocol = SMB1

In an attempt to confuse as many people as possible SMB1 in samba is called NT1. So change your line to:

client max protocol = NT1

And don't add the max protocol = SMB1 line at all. If you set up a server on your 18.04 box it will negotiate the right level to use with its clients and by default the upper limit is SMB3. Has been for years.

🌐
GitHub
gist.github.com › aont › 5d389784615a0d3f552860fd73b74dfe
How to Enable SMB1-NT1 per Client IP in Samba - Use config file Instead of include.md · GitHub
Use config file = %I instead to ensure per-client IP settings like server min protocol = NT1 are applied during the initial handshake.
Find elsewhere
🌐
Google Groups
groups.google.com › g › linux.samba › c › ZmJhyt6CVzU
[Samba] smb2 vs. NT1
We use this smb.conf: [global] socket options = IPTOS_THROUGHPUT TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=131072 SO_RCVBUF=131072 read raw = yes server string = %h write raw = yes #oplocks = yes max xmit = 131072 dead time = 15 getwd cache = yes use sendfile=yes block size = 131072 load printers = no aio read size = 16384 aio write size = 16384 aio write behind = /*.*/ wins support = no local master = no wins server = 192.168.3.7 veto files = /.AppleDouble/ delete veto files = yes hide dot files = yes printing = BSD max protocol = SMB2 min protocol = SMB2 [projects] path = /W/Projects browseable = yes public = yes guest ok = yes read only = no force user = user force group = user The speed is fine with this configuration, around 100Mbyte/s. If I change protocol to NT1, the speed drops to around 50Mbyte/s.
🌐
Samba
samba.org › samba › security › CVE-2016-2115.html
Samba - Security Announcement Archive
The effective default for this new option is "mandatory". In order to be compatible with more SMB server implementations, the following additional options are introduced: "client ipc min protocol" ("NT1" by default) and "client ipc max protocol" (the highest support SMB2/3 dialect by default).
🌐
Mageia Forum
forums.mageia.org › en › viewtopic.php
Mageia forum • View topic - [SOLVED] Can't connect to Samba share
November 23, 2021 - As I imagined, adding "client min protocol = NT1" to smb.conf allowed smbclient to connect. A nice benefit is that now Dolphin can see and browse the share too, because I specified the workgroup WORKGROUP in smb.conf. In fact, I could've get the share name more easily with command smbtree.
🌐
Samba
lists.samba.org › archive › samba › 2023-June › 245553.html
[Samba] NT1 SMB1 Updates simplified configuration
June 16, 2023 - passwd program = /usr/bin/passwd %u server max protocol = NT1 server min protocol = NT1 server role = standalone server server string = %h server (Samba, Ubuntu) unix password sync = Yes usershare allow guests = Yes wins support = Yes idmap config * : range = 3000-7999 idmap config lingroup : backend = rid idmap config lingroup : range = 10000-999999 idmap config * : backend = tdb admin users = sysadmin create mask = 0660 force create mode = 0770 force directory mode = 0770 hosts allow = 127.0.0.1 192.168.1.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › networking
[Solved] Samba issue - Linux Mint Forums
December 17, 2021 - That is the "invalid argument" From: Samba and Mint20 You have 3 choices: [1] Enable SMB1 ( Samba call SMB1 NT1 ) on the server by editing /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add these: ... server min protocol = NT1 client min protocol = NT1 Then reboot your system.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › networking
Why SMBv1 works on Mint but not on Ubuntu? - Linux Mint Forums
March 6, 2022 - This means that you should set 'server min protocol = NT1' on the machine that holds the share and 'client min protocol = NT1' on the machine that will connect to the share. You can set both if you wish on every machine, but you do not need to set them on any machine running a version of Samba ...
🌐
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.
🌐
Samba
samba.org › samba › history › samba-4.11.0.html
Samba 4.11.0 - Release Notes
Note that most commandline tools e.g. smbclient, smbcacls and others also support the '--option' argument to overwrite smb.conf options, e.g. --option='client min protocol=NT1' might be useful. As Microsoft no longer installs SMB1 support in recent releases or uninstalls it after 30 days without usage, the Samba Team tries to get remove the SMB1 usage as much as possible.
🌐
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.
🌐
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 ... (to the samba server, default is now SMB2 because NT1 has some "slight" security issues...) to make the server support SMBv1-only clients but should seek to get network-wide SMB2 support asap....
🌐
SambaWiki
wiki.samba.org › index.php › Samba_4.11_Features_added › changed
Samba 4.11 Features added/changed - SambaWiki
Note: that most commandline tools e.g. smbclient, smbcacls and others also support the '--option' argument to overwrite smb.conf options, e.g. --option='client min protocol=NT1' might be useful.
🌐
ArchWiki
wiki.archlinux.org › title › Samba
Samba - ArchWiki
May 26, 2026 - Note smbtree uses SMB1 and NetBIOS, which means they must be enabled on the servers and you need to set client min protocol = NT1 in smb.conf on the client. Otherwise, smbtree will show empty output. Samba clients handle NetBIOS host names automatically by default (the behavior is controlled by the name resolve order option in smb.conf).