I found no way to escape the '%' in order to enter a username that contains a '%' character. The part of the login name that is after '%' is recognized as password.
I tried to espace with \ or double %% or $'\045' ==> it does not work.
Same thing if providing arguments using a file
mount.cifs version: 5.3
Thanks for your feedback
Yeah, this is due to a rather dumb design decision when mount.cifs was
created. We'll have to think about how best to deprecate the username%password syntax. For now, I'm afraid that this simply won't work.
Steve, this page indicates that '%' is a legit character in a username. What
was the rationale for disallowing it? Any thoughts on how to fix this? I think
we're better off deprecating this syntax than adding non-standard escape
sequences that we'll need to deal with later...
I've started the process to deprecate the syntax that allows you to embed the domain and password in the username (see commit 569cfcb3 in cifs-utils repo). I've just released 5.7 and am planning to remove that support in 5.9.
Is this issue resolved
if so, which build has it
(In reply to lokeshbabu from comment #3)
Yes, it's resolved. Support for "complex" usernames was removed in cifs-utils-5.9, but that also added a regression. I'd suggest moving to 6.4 unless you have some reason to stay at an earlier version.