如何在Ubuntu 18.04 Server上默认启用SMB1并禁用SMB2和SMB3?

问题描述

我想在Ubuntu 18.04 Server和Windows CE之间共享文件。我只需要使用SMB1协议来连接Windows CE,因为此系统仅支持SMB1。我尝试通过以下方式配置Samba /etc/samba/smb.conf

[global]
protocol = SMB1

min protocol = SMB1
max protocol = SMB1

client min protocol = SMB1
client max protocol = SMB1

但没有任何效果

Windows CE无法连接到共享文件夹。 我尝试使用Windows 10,但令人惊讶的是它可以工作,但是可能是因为我在Windows 10上运行了SMB1支持

我知道使用过时的SMB1协议的危险。但是我没有其他想法。 可以通过SMB1连接这两个系统吗?

解决方法

将指令放入/etc/samba/smb.conf 的[global] 部分

min protocol = NT1

samba 将 SMB1 称为 NT1。