I'm trying to use files from Windows box in Linux. If I use If I put a line in /etc/fstab
When putting credentials parameter in /etc/fstab
/root/.passwdfile has two lines :
got
putting Quotation marks around password=Abc.DF after mount /WinShare got prompt Password : and by typing Abc.DF ==> success Security policy in Windows box is requiring dot(.) in pasword string. Any Idea ??? |
You cannot use the credentials file for passwords containing special characters like "." or ",".
Source: Manpage mount(8) A solution would be to set up an environment variable for this share. The I haven't read of escaping special characters in the credentials file. I found a bug entry for your issue, propably, you would like to participate or get notified: There are several posts on the mailing list about this topic: List linux-cifs-client "password credentials file" answered 07 Jun '10, 12:43 guerda Do you mean storing the password in an environment variable? If so that is an incredibly insecure method of doing it, since anyone can then see the env variable.
(13 Jul '10, 19:22)
rfelsburg ♦
rfelsburg: Yes, it would be insecure, but the manpage of MOUNT recommends it. I don't know if it's possible to restrict the ENV variables.
(14 Jul '10, 07:34)
guerda
|
Could you please use some backticks (`) to format inline code and 4 whitespaces in front of a line for block code? This would make your post much more readable.
Thanks jeremy! :)
Please accept an answer so the question/answer can be finished. Or provide more details so we can help.