Cannot mount Canon Scanner CIFS share with cifs while smbclient works
Subsystems (2)
Hi,
I own a Canon MX 420 scanner which can scan to a memory card and then offer the scanned information via CIFS. Up to a few kernel versions ago (I think it worked with 3.6, but am not sure about that), things worked just fine and then stopped.
The issue is the following:
$ sudo mount.cifs '\\mx420-sch8.local\canon_memory' /media/scanner -o user=anonymous,nounix --verbose Password: <enter> mount.cifs kernel mount options: ip=192.168.218.36,unc=\\mx420-sch8.local\canon_memory,nounix,user=anonymous,pass=******** mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
A pcap file of the network traffic caused by this command can be downloaded from http://q.bofh.de/~mh/stuff/tcpdump.mount.cifs.
Otoh, smbclient '\\mx420-sch8.local\canon_memory' works. A pcap file of the network traffic caused by this command can be downloaded from
http://q.bofh.de/~mh/stuff/tcpdump.smbclient.
As somebody not knowing CIFS too well, I note that smbclients tries as anonymous, while the kernel tries to log in first and receives an error answer from the scanner.
This behavior has changed at some point of the last six months. The kernel 3.7 found in grml's 2013.02 release works, at least the 3.8.5 currently running on my notebook doesn't.
Any hints how do address this issue?
Greetings
Marc
Signature · 4 lines
----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
A message that is not in the archive (sent off-list or not yet received): 20130408194049.GE10949-MEsB+WDYHc7QKvwJT6wXshvVK+yQ3ZXh@public.gmane.org
Quoted 26 lines · On Mon, 8 Apr 2013 21:40:49 +0200 Marc Haber…
Hi,
I own a Canon MX 420 scanner which can scan to a memory card and then offer the scanned information via CIFS. Up to a few kernel versions ago (I think it worked with 3.6, but am not sure about that), things worked just fine and then stopped.
The issue is the following:
$ sudo mount.cifs '\\mx420-sch8.local\canon_memory' /media/scanner -o user=anonymous,nounix --verbose Password: <enter> mount.cifs kernel mount options: ip=192.168.218.36,unc=\\mx420-sch8.local\canon_memory,nounix,user=anonymous,pass=******** mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)A pcap file of the network traffic caused by this command can be downloaded from http://q.bofh.de/~mh/stuff/tcpdump.mount.cifs.
Otoh, smbclient '\\mx420-sch8.local\canon_memory' works. A pcap file of the network traffic caused by this command can be downloaded from
http://q.bofh.de/~mh/stuff/tcpdump.smbclient.As somebody not knowing CIFS too well, I note that smbclients tries as anonymous, while the kernel tries to log in first and receives an error answer from the scanner.
Quoted 9 lines
This behavior has changed at some point of the last six months. The kernel 3.7 found in grml's 2013.02 release works, at least the 3.8.5 currently running on my notebook doesn't.
Any hints how do address this issue?
Greetings
Marc
(cc'ing Steve)
Looks like more fallout from commit 81bcd8b795229c. Steve, weren't you working on a patch to fix the client to handle the situation where the server replies to the NEGOTIATE with the extended security bit clear?
In any case, a workaround for now might be to try and mount with sec=none. I *think* that will make the client do what smbclient is doing here.
Signature · 1 line
Jeff Layton <[email protected]>
A message that is not in the archive (sent off-list or not yet received): 20130410090415.7e1c40b3-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org
Quoted 3 lines
Steve, weren't you working on a patch to fix the client to handle the situation where the server replies to the NEGOTIATE with the extended security bit clear?
Yes
Quoted 2 lines
In any case, a workaround for now might be to try and mount with sec=none.
Let us know what happens
Quoted 24 lines · Jeff Layton
Quoted 21 lines · On Mon, 8 Apr 2013 21:40:49 +0200 Marc Haber…
Hi,
I own a Canon MX 420 scanner which can scan to a memory card and then offer the scanned information via CIFS. Up to a few kernel versions ago (I think it worked with 3.6, but am not sure about that), things worked just fine and then stopped.
The issue is the following:
$ sudo mount.cifs '\\mx420-sch8.local\canon_memory' /media/scanner -o user=anonymous,nounix --verbose Password: <enter> mount.cifs kernel mount options: ip=192.168.218.36,unc=\\mx420-sch8.local\canon_memory,nounix,user=anonymous,pass=******** mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)A pcap file of the network traffic caused by this command can be downloaded from http://q.bofh.de/~mh/stuff/tcpdump.mount.cifs.
Otoh, smbclient '\\mx420-sch8.local\canon_memory' works. A pcap file of the network traffic caused by this command can be downloaded from
http://q.bofh.de/~mh/stuff/tcpdump.smbclient.
Quoted 3 lines · Jeff Layton
In any case, a workaround for now might be to try and mount with sec=none. I *think* that will make the client do what smbclient is doing here.
I tried that, no change. Would another dump of a mount.cifs -o sec=none help?
Greetings
Marc
Signature · 4 lines
----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
A message that is not in the archive (sent off-list or not yet received): 20130410184639.GB31333-MEsB+WDYHc7QKvwJT6wXshvVK+yQ3ZXh@public.gmane.org
Quoted 7 lines · Marc Haber
Quoted 3 lines · Jeff Layton
In any case, a workaround for now might be to try and mount with sec=none. I *think* that will make the client do what smbclient is doing here.
I tried that, no change. Would another dump of a mount.cifs -o sec=none help?
yes
--
Thanks,
Steve
A message that is not in the archive (sent off-list or not yet received): CAH2r5msWFVuQFVb2fNn7W-_Gp8Uf4phE1Xd3h9HU0AOewzJHPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 10 lines · Steve French
Quoted 7 lines · Marc Haber
Quoted 3 lines · Jeff Layton
In any case, a workaround for now might be to try and mount with sec=none. I *think* that will make the client do what smbclient is doing here.
I tried that, no change. Would another dump of a mount.cifs -o sec=none help?
yes
http://q.bofh.de/~mh/stuff/tcpdump.mount.cifs.secnone
Command line was:
$ sudo mount.cifs '\\mx420-sch8.local\canon_memory' /media/scanner -o user=anonymous,nounix,sec=none --verbose mount.cifs kernel mount options: ip=192.168.218.36,unc=\\mx420-sch8.local\canon_memory,nounix,sec=none,user=anonymous,pass=******** mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Greetings
Marc
Signature · 4 lines
----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
A message that is not in the archive (sent off-list or not yet received): 20130410200746.GB515-MEsB+WDYHc7QKvwJT6wXshvVK+yQ3ZXh@public.gmane.org
Given that it worked before probably better to try "sec=ntlm" (or "sec=ntlmv2") since that will send what we used to send.
Quoted 30 lines · Marc Haber
Quoted 10 lines · Steve French
Quoted 7 lines · Marc Haber
Quoted 3 lines · Jeff Layton
In any case, a workaround for now might be to try and mount with sec=none. I *think* that will make the client do what smbclient is doing here.
I tried that, no change. Would another dump of a mount.cifs -o sec=none help?
yes
http://q.bofh.de/~mh/stuff/tcpdump.mount.cifs.secnone
Command line was:
$ sudo mount.cifs '\\mx420-sch8.local\canon_memory' /media/scanner -o user=anonymous,nounix,sec=none --verbose mount.cifs kernel mount options: ip=192.168.218.36,unc=\\mx420-sch8.local\canon_memory,nounix,sec=none,user=anonymous,pass=******** mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)Greetings
Marc--
-----------------------------------------------------------------------------Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
Signature · 3 lines
Thanks, Steve
A message that is not in the archive (sent off-list or not yet received): CAH2r5muGsam56ShjokfTUGko+UPxoOgd=45TTJK5rCWkZsQuzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 2 lines · Steve French
Given that it worked before probably better to try "sec=ntlm" (or "sec=ntlmv2") since that will send what we used to send.
sec=ntlm worked, thanks.
Greetings
Marc
Signature · 4 lines
----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062