[Samba] Please help printing from CUPS to XP shared printer via smb
Bob Alexander
bob at ngi.it
Sun Feb 6 13:44:48 GMT 2005
Sorry if this is a stupid question but I tried reading, studying and
finding solution but am not making it alone :)
On my home lan I have a Linux (Debian sid) box (192.168.174.244) running
3.0.10 samba and cups 1.1.23.
My objective is to print from this box to the other home PC which is
running XP (192.168.174.242) and sharing an Epson R200 printer.
Follows the troubleshooting I could do by myself including an "ethereal"
trace.
I would be grateful if any of you could help me understand what am I
doing wrong which I suspect is related to a wrong authentication ???
TIA,
Bob
1) This is the first "anomaly". What are those messages at the bottom ?
It's reason ?
bob at t40:~$ smbclient -I 192.168.174.242 -L fenice-nf7-maxt -N
Domain=[FENICE-NF7-MAXT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
P$ Disk Default share
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
R200 Printer R200
Z$ Disk Default share
ADMIN$ Disk Remote Admin
C$ Disk Default share
timeout connecting to 192.168.174.242:139
Error connecting to 192.168.174.242 (Operation already in progress)
Connection to fenice-nf7-maxt failed
NetBIOS over TCP disabled -- no workgroup available
2) I proceeded to define the printer to my linux CUPS (127.0.0.1:631)
and this is what I see with ethereal on either box. In particular I see
a Tree Connect AndX Request, Path: \\192.168.174.242\R200 in frame 9
going from linux to xp and Tree Connect AndX Response, Error:
STATUS_ACCESS_DE as the reply from xp to linux in frame 10 the Reason ?
No. Time Source Destination Protocol
Info
1 0.000000 192.168.174.244 192.168.174.242 TCP
57074 > microsoft-ds [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460
TSV=73543465 TSER=0 WS=2
Frame 1 (74 bytes on wire, 74 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 0, Ack: 0, Len: 0
No. Time Source Destination Protocol
Info
2 0.000267 192.168.174.242 192.168.174.244 TCP
microsoft-ds > 57074 [SYN, ACK] Seq=0 Ack=1 Win=65535 Len=0 MSS=1460
WS=0 TSV=0 TSER=0
Frame 2 (78 bytes on wire, 78 bytes captured)
Ethernet II, Src: 00:04:4b:80:80:03, Dst: 00:09:6b:53:12:f1
Internet Protocol, Src Addr: 192.168.174.242 (192.168.174.242), Dst
Addr: 192.168.174.244 (192.168.174.244)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
57074 (57074), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol
Info
3 0.000338 192.168.174.244 192.168.174.242 TCP
57074 > microsoft-ds [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSV=73543465 TSER=0
Frame 3 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol
Info
4 0.015363 192.168.174.244 192.168.174.242 SMB
Negotiate Protocol Request
Frame 4 (249 bytes on wire, 249 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 1, Ack: 1, Len: 183
NetBIOS Session Service
SMB (Server Message Block Protocol)
Frame 5 (155 bytes on wire, 155 bytes captured)
Ethernet II, Src: 00:04:4b:80:80:03, Dst: 00:09:6b:53:12:f1
Internet Protocol, Src Addr: 192.168.174.242 (192.168.174.242), Dst
Addr: 192.168.174.244 (192.168.174.244)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
57074 (57074), Seq: 1, Ack: 184, Len: 89
NetBIOS Session Service
SMB (Server Message Block Protocol)
No. Time Source Destination Protocol
Info
6 0.016445 192.168.174.244 192.168.174.242 TCP
57074 > microsoft-ds [ACK] Seq=184 Ack=90 Win=5840 Len=0 TSV=73543481
TSER=5887
Frame 6 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 184,
Ack: 90, Len: 0
No. Time Source Destination Protocol
Info
7 0.016912 192.168.174.244 192.168.174.242 SMB
Session Setup AndX Request, User: anonymous
Frame 7 (158 bytes on wire, 158 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 184,
Ack: 90, Len: 92
NetBIOS Session Service
SMB (Server Message Block Protocol)
No. Time Source Destination Protocol
Info
8 0.017755 192.168.174.242 192.168.174.244 SMB
Session Setup AndX Response
Frame 8 (193 bytes on wire, 193 bytes captured)
Ethernet II, Src: 00:04:4b:80:80:03, Dst: 00:09:6b:53:12:f1
Internet Protocol, Src Addr: 192.168.174.242 (192.168.174.242), Dst
Addr: 192.168.174.244 (192.168.174.244)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
57074 (57074), Seq: 90, Ack: 276, Len: 127
NetBIOS Session Service
SMB (Server Message Block Protocol)
No. Time Source Destination Protocol
Info
9 0.017886 192.168.174.244 192.168.174.242 SMB
Tree Connect AndX Request, Path: \\192.168.174.242\R200
Frame 9 (166 bytes on wire, 166 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 276,
Ack: 217, Len: 100
NetBIOS Session Service
SMB (Server Message Block Protocol)
No. Time Source Destination Protocol
Info
10 0.018630 192.168.174.242 192.168.174.244 SMB
Tree Connect AndX Response, Error: STATUS_ACCESS_DENIED
Frame 10 (105 bytes on wire, 105 bytes captured)
Ethernet II, Src: 00:04:4b:80:80:03, Dst: 00:09:6b:53:12:f1
Internet Protocol, Src Addr: 192.168.174.242 (192.168.174.242), Dst
Addr: 192.168.174.244 (192.168.174.244)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
57074 (57074), Seq: 217,
Ack: 376, Len: 39
NetBIOS Session Service
SMB (Server Message Block Protocol)
No. Time Source Destination Protocol
Info
11 0.018827 192.168.174.244 192.168.174.242 TCP
57074 > microsoft-ds [FIN, ACK] Seq=376 Ack=256 Win=5840 Len=0
TSV=73543484 TSER=5887
Frame 11 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 376,
Ack: 256, Len: 0
No. Time Source Destination Protocol
Info
12 0.019380 192.168.174.242 192.168.174.244 TCP
microsoft-ds > 57074 [FIN, ACK] Seq=256 Ack=377 Win=65160 Len=0 TSV=5888
TSER=73543484
Frame 12 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:04:4b:80:80:03, Dst: 00:09:6b:53:12:f1
Internet Protocol, Src Addr: 192.168.174.242 (192.168.174.242), Dst
Addr: 192.168.174.244 (192.168.174.244)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
57074 (57074), Seq: 256,
Ack: 377, Len: 0
No. Time Source Destination Protocol
Info
13 0.019430 192.168.174.244 192.168.174.242 TCP
57074 > microsoft-ds [ACK] Seq=377 Ack=257 Win=5840 Len=0 TSV=73543484
TSER=5888
Frame 13 (66 bytes on wire, 66 bytes captured)
Ethernet II, Src: 00:09:6b:53:12:f1, Dst: 00:04:4b:80:80:03
Internet Protocol, Src Addr: 192.168.174.244 (192.168.174.244), Dst
Addr: 192.168.174.242 (192.168.174.242)
Transmission Control Protocol, Src Port: 57074 (57074), Dst Port:
microsoft-ds (445), Seq: 377,
Ack: 257, Len: 0
More information about the samba
mailing list