Hello all,
I think I had a similar issue. I will restate my problem just in case it was different.
Firstly I am on ubuntu 12.04, and my problem turned out to be specifying the windows domain incorrectly in the credentials file. I am also using the winbind package so as to resolve netbios names rather than using ip addresses, but I don't think that effects this issue.
I could mount my share on file server using the following command,
Code:
sudo mount -t cifs //netbios-servername/my-share /media/mount-point -o username=my-user@my-domain,password=my-password,iocharset=utf8,file_mode=0777,dir_mode=0777
This would work well for manual mount, but I wanted to automatically mount using /etc/fstab. To do this I needed to specify a credential file. However, when I created the file, /root/.smbcredentials and inserted these lines:
username=my-user@my-domain
password=my-password
And ran the following command:
Code:
sudo mount -t cifs //netbios-servername/my-share /media/mount-point -o credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777
I got the error(13) message.
After editing my /root/.smbcredentials to:
username=my-user
password=my-password
domain=my-domain
I successfully mounted my network drive using the credentials file.
Hope this helps anyone with this issue!
-avi
PS
Don't forget to change permissions on the credentials file!
Code:
sudo chmod 400 /root/.smbcredentials
Bookmarks