I can use the following command to log into a samba share on my network:
smbclient -L //host.name.com -U myUser --workgroup=WORK
myUser is my username and
WORK is the name of the workgroup. I can also access this share via Places->Connect to Network without issues.
However, I can't mount the drive permanently. Here's what I did after following the Ubuntu instructions on mounting a sambda share permanently:
I have created a file called
~/.smbcredentials and run
chmod 600 ~/.smbcredentials:
pass is my password)
I have also added the following line to my
//host.name.com/ /media/share cifs credentials=/home/myUser/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
I have also run
sudo mkdir /media/share.
However, when I run
sudo mount -a I see the following:
mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
What am I doing wrong?