I did a clean install of 20.04. In files I can see my NAS but can't access it as it does not give the password dialog box.
There are other posts saying to modify the smb.conf
file to make this work but I don't seem to have this file with a fresh install. Is there a way to fix this or is this version of Ubuntu basically useless to anyone with an older but perfectly functional NAS?
One way to resolve this issue in Samba:
Edit
/etc/samba/smb.conf
That file will be added when you install either the
samba
package or thesmbclient
package. If you don't want to install samba install smbclient:Then edit
/etc/samba/smb.conf
and right under the workgroup = WORKGROUP line add this one:Another way - and one I prefer myself - is a cifs mount.
I added these two lines to
smb.conf
in the[global]
section and that fixed it for me on Xubuntu 20.04.More details are given here: Broken samba shares
There's a problem with 20.04 accessing NAS share. You can check if you have an old Ubuntu 18-19 live dvd: it can access NAS share out of the box without tweaking anything.
In 18-19 and 20.04, only samba.lib, cifs.lib, nfs.lib are installed. It's sufficient in 18-19 but it does not work for NAS share in 20.04. So the solutions commonly found (full cifs, full samba, full nfs) all miss the point: you did not need to do any tweaking in 18-19.
Smb.conf is installed if you install FULL samba for directory sharing (other than NAS) for instance and it works well in 20.04. In Gnome 3.36, if you share a folder, it installs full samba automaticaly and it works out of the box in 20.04. But you won't be able to acccess NAS shares or if you can the objects (avi, jpg, text etc.) are all seen as folders. This behaviour is a known bug suppposedly recently solved. (Page bottom) https://launchpad.net/~sergiodj/+archive/ubuntu/samba-bug1872476-v2
add
client min protocol = NT1
into/etc/samba/smb.conf
following[global]
partsudo add-apt-repository ppa:sergiodj/samba-bug1872476-v2
sudo apt update
sudo apt upgrade
i've got a simple solution for newbies. step 1: instal smb4k with the standard software installer from 20.04. Step2 run smb4k several times and then shut it completely down. You now have a etc/samba directory with a smbconf file. step 3 Go to terminal and give in line "sudo nautilus" Your file browser starts up with root authority. Navigate to etc/samba and open smbconf file. You can now ad the line"client min protocol" to the global chapter of the smbconf file. I prefer it as the last line of the chapter. safe the file. Step 5. run smb4k again so smb is restarted. now you can open your old fashioned NAS. It works for mee Good luck
I had exactly this problem and only wanted to install the bare minimum to get this going, so this is what I did.
Installed
cifs-utils
(uses 306kB when Installed), rebooted (not sure if this was really required but I did this anyway), then mounted the file system manually. My NAS is fairly old, my first attempt failed; I useddmesg
to see the kernel messages, it showed me this:So I added the
vers=1.0
option to the mount command, and everything worked fine.cifs-utils provides the mount.cifs command that allows the nas share to be mounted. The coercion to use protocol version 1.0 is required because the version 2 or 3 is now prefered (and the new default) due to a security hole, but as you mentioned "I'm on my own network, and I just wanted it to work".
Here is the recipe :
This method doesn't help with nautilaus mounting the share, but I didn't need that. You don't get a
/etc/samba/smb.conf
file using this method, this is an alternative to the other answers.