Red Hat Bugzilla – Bug 106483
smbclient: -N negates the provided password, despite documentation
Last modified: 2014-08-31 19:25:28 EDT
Description of problem:
Two command lines:
smbclient //server/share password -U user -c quit
smbclient //server/share password -U user -N -c quit
ought to behave in the same way according to the documentation (in fact, the
documentation says that if the password is provided on the command line, -N is
In fact the second of these always fails.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. See above.
Didn't happen before 3.
I've confirmed that this is a code bug, and opened it upstream:
I include a patch in the 3.0.20 RawHide RPM. Let me know if it fixes the
problem for you so I can send it upstream.
I worked around this long ago. It is simple to test yourself.
This patch breaks smbclient tar file creation with
smbclient //server/share -A server.auth -Tc /tmp/server-share.tar
as described in bug #176649.
This is not a code bug, but a documentation issue.
-N really mean No Password, if you use it it means you don't want to send a
password and that's what the code does (yes it ignores the password you set on
the command line by design).
I fixed the documentation upstream to better explain this.
(Re)closing this bug as NOTABUG