Linux (any distro):
Add the following lines to the section [Global]
in the /etc/samba/smb.conf
ntlm auth = ntlmv1-permitted
client min protocol = CORE
server min protocol = CORE
and restart the service:
systemctl restart smbd
Windows (10, 11, Server 2016, 2019, 2022):
Run Powershell with administrator’s privileges and execute:
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Set-SmbServerConfiguration -EnableSMB1Protocol $true