Ubuntu 17.10 issue with mount cifs
I had the same problem after upgrading to Ubuntu 17.10. Suddenly, my CIFS shares would no longer mount. Adding vers=1.0
to the mount options fixed it for me. Admittedly, this is a bit of a bodge, but some network share access is better than no network share access.
My /etc/fstab
file previously had the following 4 lines at the bottom:
# Network File Shares
//phc.imsu.ox.ac.uk/phc /mnt/PHC cifs credentials=/home/benjamin/.smbcredentials,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777 0 0
//phc.imsu.ox.ac.uk/departments /mnt/DEPARTMENTS cifs credentials=/home/benjamin/.smbcredentials,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777 0 0
//femur.imsu.ox.ac.uk/phc_cprd /mnt/PHC_CPRD cifs credentials=/home/benjamin/.smbcredentials,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777 0 0
Changing them to:
# Network File Shares
//phc.imsu.ox.ac.uk/phc /mnt/PHC cifs credentials=/home/benjamin/.smbcredentials,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777,vers=1.0 0 0
//phc.imsu.ox.ac.uk/departments /mnt/DEPARTMENTS cifs credentials=/home/benjamin/.smbcredentials,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777,vers=1.0 0 0
//femur.imsu.ox.ac.uk/phc_cprd /mnt/PHC_CPRD cifs credentials=/home/benjamin/.smbcredentials,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777,vers=1.0 0 0
Resolved the issue.
Try this:
mount -t cifs -o vers=1.0,username=t0b1,password=$pw //server.local/shared/ /media/shared
That is, the same as your first try but without space. They are not allowed in the options. That is probably the reason why the mount does not see username ans password.