I have searched the internet for about 2 hours now but all the suggested fixes do not work. Hopefully someone here knows a good way to fix this issue or can point me in the right direction.
The SMB server is a Synology NAS.
I used this method since Ubuntu 12, but now it will not work. I did the following
- install cifs
edit the /etc/fstab and added the next line
//servername/sharename /media/<username>/windowsshare cifs credentials=/home/ubuntuusername/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
The troubleshooting i already did
- Make sure the mount path exists and is empty (/media//windowsshare)
- Tried all the sec= options available
- set the rights on .smbcredentials file from 600 to 777
- Added servername to hosts file just in case
- Tried adding correct username= and password= instead of the file
- Tried using the command line instead of fstab
When connecting to the share using the same credentials in the File Explorer (Other Locations -> Connect to Server) it works without any problems.
P.S. This is a clean install of Ubuntu 17.10
The error sudo mount -a displays is:
mount error(95): Operation not supported Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
If I need to supply any more information please let me know.
Thanks in advance. Chris