[Bug 1069915] Re: unable to mount CIFS share with comma in password
test051102
test051102 at hotmail.com
Fri May 8 14:01:54 UTC 2015
I am also affected by this problem. The previous comment of Dee is
wrong. Passwords can be successfully put into "". When choosing a
password like "a, b" mount outputs "mount error(22): Invalid argument".
But dmesg reports "CIFS: Unknown mount option " b".
This clearly indicates a software problem. The software tries to
seperate arguments by using the comma character. It does not respect
complex passwords embedded in "" characters.
It is some kind of standard to use complex and possibly "secure"
passwords today. This cannot be achieved by using CIFS on Linux. It
would be very nice if this could be fixed.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cifs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1069915
Title:
unable to mount CIFS share with comma in password
Status in cifs-utils package in Ubuntu:
Confirmed
Bug description:
Since the update to Quantal I am unable to mount CIFS shares with a
comma in the password:
root at lama ~ # PASSWD=",password" mount -t cifs //cifs.example.org target -o username=user,domain=dom,uid=4711,gid=12345
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
32 root at lama ~ # dmesg | tail -1
[17848.954253] CIFS: Unknown mount option "password"
The same thing happens with a credential file and the password prompt.
This looks like a parser regression:
mount.cifs(8) explains:
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) or entered at the
password prompt will be read correctly.
This is pretty evil, as it exposes parts of the password through
dmesg.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/1069915/+subscriptions
More information about the foundations-bugs
mailing list