Mount CIFS Credentials File has Special Character
Posted
by
David George
on Server Fault
See other posts from Server Fault
or by David George
Published on 2011-09-08T15:53:29Z
Indexed on
2012/07/04
15:18 UTC
Read the original article
Hit count: 315
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?
© Server Fault or respective owner