I'm having trouble mounting a share on my XenServer (5.6 FP1). From the command line I try:
mount.cifs //server/share /mnt/share -o credentials=credfile
The contents of credfile is:
username=Administrator
password=What@zR\!p3s
When I run the above mount command I get "Access Denied". However if I run the following command it works:
mount.cifs //server/share /mnt/share -o username=Administrator,password=What@zR\!p3s
Please note the "\" is to escape the bang and I've tried this with and without it in the credentials file. Any suggestions?
Best Answer
I have the same problem because my password contain comma symbol (i.e. "PASS,WORD"):
At first, you should try enable verbose mode (--verbose option):
Here I see my problem. Comma breaks all stuff. Solution is use credential file. What is written in man mount.cifs:
Create this file any way you like:
and use (--verbose can be omitted)
No problem with password.