Originally Posted by RRepster
From the Ubuntu wiki I found this option:
//10.1.1.2/Photos cifs username=adam,password=adam,iocharset=utf8,sec=ntlm 0 0
that method required creating /media/windowsshared file
mount -a passes but navigating to /media/windowsshared shows nothing in there.
/media/windowsshared should be a directory, not a file. Though it might be a typo in your message.
For me mounting from fstab by "mount" command doesn't work as well due to permissions, even if I trying to mount share as root.
So I use my workaround, a little executable script that assigned to hotkey. This is what I have in that script:
echo "password" | sudo -S mount -t cifs //192.168.1.11/share /mnt/share -o nosuid,nodev,password="password",sec=ntlm,workgroup=WORKGROUP,ip=192.168.1.11
The only way to get it working for me is mounting share with piping password to sudo.
Options "workgroup" and "ip" must be specified too.
May be it will help you.