unable to mount CIFS share with comma in password
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cifs-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since the update to Quantal I am unable to mount CIFS shares with a comma in the password:
root@lama ~ # PASSWD=",password" mount -t cifs //cifs.example.org target -o username=
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
32 root@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.
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.