Mount CIFS Credentials File has Special Character
- by David George
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?