Answers to: credentials mount cifs - dot in password stringhttp://linuxexchange.org/questions/791/credentials-mount-cifs-dot-in-password-string<p>I'm trying to use files from Windows box in Linux.</p> <p>If I use <code>mount -t cifs username=xyz, password=Abc.DF,...</code> ==> mount success</p> <p>If I put a line in /etc/fstab </p> <p><code>//Windows/share/c /WinShare username=xyz,password=Abc.DF,....</code> ==> mount success</p> <p>When putting credentials parameter in /etc/fstab</p> <p><code>//Windows/share/c /WinShare credentials=/root/.passwdfile .....</code></p> <p>/root/.passwdfile has two lines :</p> <pre><code>username=xyz password=Abc.DF </code></pre> <p>got </p> <pre><code>**mount error 13 = Permission denied** </code></pre> <p>putting Quotation marks around password=Abc.DF</p> <p>after</p> <p>mount /WinShare</p> <p>got prompt</p> <p>Password :</p> <p>and by typing Abc.DF ==> success</p> <p>Security policy in Windows box is requiring dot(.) in pasword string.</p> <p>Any Idea ???</p>enThu, 09 Dec 2010 11:05:26 -0500Answer by unwindhttp://linuxexchange.org/questions/791/credentials-mount-cifs-dot-in-password-string/1453<p>guerda's answer is quoting text that says the exact opposite. It <em>should</em> be okay to have special characters in the credentials file, it is on the command line that they cannot be parsed.</p>unwindThu, 09 Dec 2010 11:05:26 -0500http://linuxexchange.org/questions/791/credentials-mount-cifs-dot-in-password-string/1453Answer by guerdahttp://linuxexchange.org/questions/791/credentials-mount-cifs-dot-in-password-string/792<p>You cannot use the credentials file for passwords containing special characters like "." or ",".</p> <blockquote> <p>Note that a password which contains the delimiter character (i.e. a comma ',') will fail to be parsed correctly on the command line. However, the same password defined in the PASSWD environment variable or via a credentials file (see below) will be read correctly.</p> </blockquote> <p>Source: <a href="http://linuxmanpages.com/man8/mount.cifs.8.php" rel="nofollow">Manpage mount(8)</a></p> <p>A solution would be to set up an environment variable for this share. The <code>mount</code> command will use this password and special characters are allowed.</p> <p>I haven't read of escaping special characters in the credentials file.</p> <p>I found a bug entry for your issue, propably, you would like to participate or get notified:<br> <a href="https://bugzilla.samba.org/show_bug.cgi?id=7386" rel="nofollow">Cannot mount CIFS share if password contains non-ASCII character</a></p> <p>There are several posts on the mailing list about this topic: <a href="http://www.google.com/search?hl=en&amp;client=firefox-a&amp;hs=6fH&amp;rls=org.mozilla%3Ade%3Aofficial&amp;q=site%3Ahttp%3A%2F%2Flists.samba.org%2Farchive%2Flinux-cifs-client%2F+password+credentials+file+inurl%3A2010&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;gs_rfai=" rel="nofollow">List linux-cifs-client "password credentials file"</a></p>guerdaMon, 07 Jun 2010 12:43:51 -0400http://linuxexchange.org/questions/791/credentials-mount-cifs-dot-in-password-string/792