REAL PIZZA RE: Printing Error; level 20

Samuel Liddicott sam at campbellsci.co.uk
Tue Aug 17 08:34:12 GMT 1999


Can I beg the indulgance of some wise man in exchange for REAL PIZZA (send
me phone number of local pizza co. & deliver address)?

I'm trying to work out why samba won't print to a tcp/ip-smb print server
but win95 will.

> -----Original Message-----
> From: samba-ntdom at samba.org [mailto:samba-ntdom at samba.org]On Behalf Of
> Samuel Liddicott
> Sent: 11 August 1999 01:22 PM
> To: Multiple recipients of list SAMBA-NTDOM
> Subject: Printing Error; level 20
>
>
> Maybe this level-20 log will give more insight into the difference between
> samba and win95 as a printer client.
>
> smbclient '\\Ps656ad8\Printer1' -P
> smb: \> print -
> ERRSRV - ERRaccess (The requester does not have  the  necessary  access
> rights
>  within  the specified  context for the reques opening remote file
> test-14130
> smb: \> print test
> ERRSRV - ERRaccess (The requester does not have  the  necessary  access
> rights
>  within  the specified  context for the reques opening remote file test
>
> Ps686ad8 (what a name!) is an Intel Inbusiness PrintStation (2 port) that
> supports SMB over TCP/IP and SMB over NetBeui.
>
> It really works, we print OK from our win95 PC's which only have TCP/IP
> installed.
>
> I'm using the samba CVS head as of a few days ago, but returns this error:
>
> ERRSRV - ERRaccess (The requester does not have  the  necessary  access
> rights
>  within  the specified  context for the reques opening remote file
> test-14130
>
> Whats smbclient trying to do that windows doesn't?  It seems like
> it is the
> name of the remote file that is the problem.  I've tried guessing
> a few, and
> a few experimental put commands, but no joy.
>
> smb: \>pwd
> Current directory is \\Ps656ad8\
>
>
> Level 20 log below
>
> WARNING: The "alternate permissions"option is deprecated
> Added interface ip=172.16.1.1 bcast=172.16.1.255 nmask=255.255.255.0
> Client started (version 2.1.0-prealpha).
> cli_establish_connection: CSLUK<00> connecting to PS656AD8<20> (0.0.0.0) -
> ROOT
> [SERVER] with NTLMv1
> resolve_name: Attempting wins lookup for name Ps656ad8<0x20>
> bind succeeded on port 0
> nmb packet from 127.0.0.1(137) header: id=22117 opcode=Query(0)
> response=No
>     header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
>     header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
>     question: q_name=PS656AD8<20> q_type=32 q_class=1
> Sending a packet of len 50 to (127.0.0.1) on port 137
> nmb packet from 127.0.0.1(137) header: id=22117 opcode=Query(0)
> response=No
>     header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
>     header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
>     question: q_name=PS656AD8<20> q_type=32 q_class=1
> Sending a packet of len 50 to (127.0.0.1) on port 137
> nmb packet from 127.0.0.1(137) header: id=22117 opcode=Query(0)
> response=No
>     header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
>     header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
>     question: q_name=PS656AD8<20> q_type=32 q_class=1
> Sending a packet of len 50 to (127.0.0.1) on port 137
> resolve_name: Attempting lmhosts lookup for name Ps656ad8
> getlmhostsent: lmhost entry: 127.0.0.1 localhost
> resolve_name: Attempting broadcast lookup for name Ps656ad8<0x20>
> bind succeeded on port 0
> nmb packet from 172.16.1.255(137) header: id=22118 opcode=Query(0)
> response=No
>     header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
>     header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
>     question: q_name=PS656AD8<20> q_type=32 q_class=1
> Sending a packet of len 50 to (172.16.1.255) on port 137
> read_udp_socket: lastip 172.16.1.51 lastport 137 read: 62
> parse_nmb: packet id = 22118
> Received a packet of len 62 from (172.16.1.51) port 137
> nmb packet from 172.16.1.51(137) header: id=22118 opcode=Query(0)
> response=Yes
>     header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
>     header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
>     answers: nmb_name=PS656AD8<20> rr_type=32 rr_class=1 ttl=-65536
>     answers   0 char .....3   hex 0000AC100133
> Got a positive name query response from 172.16.1.51 ( 172.16.1.51 )
> Connecting to 172.16.1.51 at port 139
> write_socket(3,76)
> write_socket(3,76) wrote 76
> Sent session request
> got smb length of 0
> size=0
> smb_com=0x0
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=0
> smb_flg2=0
> smb_tid=0
> smb_pid=0
> smb_uid=0
> smb_mid=0
> smt_wct=0
> smb_bcc=0
> size=164
> smb_com=0x72
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=8
> smb_flg2=1
> smb_tid=0
> smb_pid=25259
> smb_uid=0
> smb_mid=1
> smt_wct=0
> smb_bcc=129
> [000] 02 50 43 20 4E 45 54 57  4F 52 4B 20 50 52 4F 47  .PC NETW ORK PROG
> [010] 52 41 4D 20 31 2E 30 00  02 4D 49 43 52 4F 53 4F  RAM 1.0. .MICROSO
> [020] 46 54 20 4E 45 54 57 4F  52 4B 53 20 31 2E 30 33  FT NETWO RKS 1.03
> [030] 00 02 4D 49 43 52 4F 53  4F 46 54 20 4E 45 54 57  ..MICROS OFT NETW
> [040] 4F 52 4B 53 20 33 2E 30  00 02 4C 41 4E 4D 41 4E  ORKS 3.0 ..LANMAN
> [050] 31 2E 30 00 02 4C 4D 31  2E 32 58 30 30 32 00 02  1.0..LM1 .2X002..
> [060] 53 61 6D 62 61 00 02 4E  54 20 4C 41 4E 4D 41 4E  Samba..N T LANMAN
> [070] 20 31 2E 30 00 02 4E 54  20 4C 4D 20 30 2E 31 32   1.0..NT  LM 0.12
> [080] 00                                                .
> write_socket(3,168)
> write_socket(3,168) wrote 168
> got smb length of 37
> size=37
> smb_com=0x72
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=136
> smb_flg2=1
> smb_tid=0
> smb_pid=25259
> smb_uid=0
> smb_mid=1
> smt_wct=1
> smb_vwv[0]=0 (0x0)
> smb_bcc=0
> size=69
> smb_com=0x75
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=0
> smb_flg2=0
> smb_tid=0
> smb_pid=25259
> smb_uid=0
> smb_mid=1
> smt_wct=4
> smb_vwv[0]=255 (0xFF)
> smb_vwv[1]=0 (0x0)
> smb_vwv[2]=0 (0x0)
> smb_vwv[3]=0 (0x0)
> smb_bcc=26
> [000] 5C 5C 50 53 36 35 36 41  44 38 5C 50 52 49 4E 54  \\PS656A D8\PRINT
> [010] 45 52 31 00 3F 3F 3F 3F  3F 00                    ER1.???? ?.
> write_socket(3,73)
> write_socket(3,73) wrote 73
> got smb length of 47
> size=47
> smb_com=0x75
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=128
> smb_flg2=0
> smb_tid=0
> smb_pid=25259
> smb_uid=0
> smb_mid=1
> smt_wct=3
> smb_vwv[0]=255 (0xFF)
> smb_vwv[1]=47 (0x2F)
> smb_vwv[2]=1 (0x1)
> smb_bcc=6
> [000] 4C 50 54 31 3A 00                                 LPT1:.
> smb: \> print -
> size=77
> smb_com=0x2d
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=0
> smb_flg2=0
> smb_tid=0
> smb_pid=25259
> smb_uid=0
> smb_mid=1
> smt_wct=15
> smb_vwv[0]=255 (0xFF)
> smb_vwv[1]=0 (0x0)
> smb_vwv[2]=0 (0x0)
> smb_vwv[3]=66 (0x42)
> smb_vwv[4]=6 (0x6)
> smb_vwv[5]=0 (0x0)
> smb_vwv[6]=0 (0x0)
> smb_vwv[7]=0 (0x0)
> smb_vwv[8]=18 (0x12)
> smb_vwv[9]=0 (0x0)
> smb_vwv[10]=0 (0x0)
> smb_vwv[11]=0 (0x0)
> smb_vwv[12]=0 (0x0)
> smb_vwv[13]=0 (0x0)
> smb_vwv[14]=0 (0x0)
> smb_bcc=12
> [000] 73 74 64 69 6E 2D 32 35  32 35 39 00              stdin-25 259.
> write_socket(3,81)
> write_socket(3,81) wrote 81
> got smb length of 65
> size=65
> smb_com=0x2d
> smb_rcls=2
> smb_reh=0
> smb_err=4
> smb_flg=128
> smb_flg2=0
> smb_tid=0
> smb_pid=25259
> smb_uid=0
> smb_mid=1
> smt_wct=15
> smb_vwv[0]=255 (0xFF)
> smb_vwv[1]=65 (0x41)
> smb_vwv[2]=16 (0x10)
> smb_vwv[3]=0 (0x0)
> smb_vwv[4]=0 (0x0)
> smb_vwv[5]=0 (0x0)
> smb_vwv[6]=0 (0x0)
> smb_vwv[7]=0 (0x0)
> smb_vwv[8]=0 (0x0)
> smb_vwv[9]=0 (0x0)
> smb_vwv[10]=0 (0x0)
> smb_vwv[11]=0 (0x0)
> smb_vwv[12]=16 (0x10)
> smb_vwv[13]=0 (0x0)
> smb_vwv[14]=0 (0x0)
> smb_bcc=0
> ERRSRV - ERRaccess (The requester does not have  the  necessary  access
> rights
>  within  the specified  context for the reques opening remote file
> stdin-25259
> smb: \> cli_shutdown



More information about the samba-ntdom mailing list