Mounting network share with CIFS stopped working on 17.10
I had the same symptoms and solved it by specifying using SMB1, for you that would be modifying it to be:
//nas/shared/ /media/nas cifs username=(username),password=(pass),uid=1000,gid=1000,iocharset=utf8,sec=ntlm,vers=1.0 0 0
If you want to be sure check your logs for cifs related messages.
Related videos on Youtube
Angelos Kyritsis
Updated on September 18, 2022Comments
-
Angelos Kyritsis over 1 year
With Ubuntu 17.04, I had created the following line in /etc/fstab to permanently mount a network drive. It worked perfectly.
//nas/shared/ /media/nas cifs username=(username),password=(pass),uid=1000,gid=1000,iocharset=utf8,sec=ntlm 0 0
However, the same code isn't working in Ubuntu 17.10 (clean installation, not an update). It shows the shared folder, but clicking on it throws an "operation permitted for root only" message.
You should note that I have done the necessary chown -R on the /media/nas folder.
I even tried to access the share with a sudo nautilus, and I am getting this error.
I have extensively read the MountWindowsSharesPermanently page on the Ubuntu wiki, but to no avail.
Any idea what I am doing wrong? Or could it be just a 17.10 bug?
-
Suncatcher about 6 yearsHave you found the solution?
-
-
Angelos Kyritsis over 6 yearsThank you so much, this worked, in conjunction with replacing //nas/shared with //nas.local/shared
-
Angelos Kyritsis over 6 yearsUnfortunately this didn't work for me. Elgorath's solution worked, but it still needs the sec=ntlm, won't function without it. In any case, thank you for your input.
-
Organic Marble over 6 yearsI have a feeling the answer to this may depend on one's samba settings for the share.
-
Organic Marble over 6 yearsBe aware that Samba 1 has major security issues. zdnet.com/article/… Windows article, but you get the idea.
-
Jonathan Hartley over 6 yearsWhile this does get rid of the error message, it's not a great solution. Does anyone know how we should be connecting to an SMB v2 (or v3) share without getting error messages?