Can't acces NAS anymore after upgrading to 20.04

Today I did a clean install of the new Ubuntu 20.04 Focal Fossa. Since then I can no longer mount folders on my NAS, which was possible on 18.04 and on Windows.

It's exactly the same issue as this one: Ubuntu 20.04 Focal Fossa (development branch) Nautilus can't mount a NAS That issue got closed for being off-topic because 20.04 was not a stable release back then. It is now, so I guess it is on-topic now?

The German message posted in that Question is Failed to mount Windows share: Software caused connection abort in the English version.

Things I tried so far:

  • downgrading samba
  • adding client min protocol = CORE to /etc/samba/smb.conf
  • adding client min protocol = SMB3 and client max protocol = SMB3 to /etc/samba/smb.conf

None of these seemed to fix the issue.


Solution 1:

Same issue here.

Since version 4, both Samba Server & Samba Clients do not allow an older level of protocols negotiation. You have to enable them in smb.conf file

Edit /etc/samba/smb.conf file (need root permissions)

in the [global] section, add the following line

client min protocol = NT1

Save the file and exit the editor.

You must restart the Samba Service for this change to take effect. In a terminal, enter this command:

sudo service smbd restart

You should be able to access your samba shares successfully. If you cannot connect to your samba share, you can lower even more the protocol security in smb.conf (not recommended), by using:

client min protocol = CORE

Cheers!

Solution 2:

Same issue here. It worked out of the box in 18 and 19 without any further step. It's easy to check with a 18,19 live dvd. In a february discussion, they wondered if this out of the box feature should be scraped in 20.04.

Samba.libs and samba.common are installed by default in 18,19, 20.04 but it does not work in the latter Simply installing the full Samba package, which installs /etc/samba/smb.conf. and adding under [GLOBAL] client min protocol = NT1 or CORE does not work. You can access the NAS folder but every object text, jpg etc. is treated as a folder.

There is a bug report relating to NAS and samba. https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476 If you install full samba add NT1 to smb.conf (installed by full samba), you can access the NAS share but all objects in the share (avi, jp, txt, etc.) are seen as folders.