Hello all,
I have a printing problem with NT, Samba 1.9.18p8 and Debian Linux
1.3 (Kernel 2.0.32). I defined a printer share, which works fine
with Win95, but it does not print with NT 4.0 SP3 and NT 3.51. After
installing the "EnablePlainTextPassword" registry entry NT4.0 is
able to browse, connect and use a file system share on the
printserver, but it can not print to the same server? I can install
a printer on NT, but if I try to print a testpage, I get immediately
the error (translated from german):
"Cannot print. Show the Printer Assistant? The syntax for the filename,
directory name or the share name is wrong."
What can I do?
Can you please mail me your smb.conf, if you also have security = share?
Here are my smb.conf and a level 4 log:
[global]
server string = Printer pool Samba 1.9.18p8
interfaces = 164.20.176.25/255.255.255.192
workgroup = Ost
guest account = sambagst
; debug level = 4
; log file = /tmp/samba/log
The print command is a shellscript, that writes the file in our
spooling system for our 130 Pages/min Xerox Printers. This works
for Win95 but not for NT3.51 and NT4.0.
The printer driver entry has no effect to the Problem.
[duplex]
comment = Fast printer duplex
path = /var/spool/samba
printable = yes
printer driver = Apple LaserWriter II NTX
writable = no
username = PCanonym
force user = PCanonym
print command = /var/xerox/smb-print pc-duplex %f %m %a
This is my example share. I can browse and use it from NT4.0SP3
while I can't print to the share duplex.
[tmp]
comment = Testfreigabe
path = /home/PCanonym
read only = no
username = PCanonym
force user = PCanonym
; public = yes
This is a level 4 log of my Problem. For this log I restarted samba,
tried to print and stopped samba:
Added interface ip=164.20.176.25 bcast=164.20.176.63 nmask=255.255.255.192
1998/06/30 18:02:50 loaded services
1998/06/30 18:02:50 becoming a daemon
bind succeeded on port 139
waiting for a connection
Trying sysv shmem open of size 102400
Initialised IPC area of size 102400
1998/06/30 18:03:02 changed root to /
open_oplock_ipc: opening loopback UDP socket.
bind succeeded on port 0
open_oplock ipc: pid = 7940, oplock_port = 1565
priming nmbd
sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
Serverzone is -7200
1998/06/30 18:03:02 Transaction 0 of length 72
netbios connect: name1=W9J00803 name2=Q9J84
Trying username q9j84
1998/06/30 18:03:03 Transaction 1 of length 174
switch message SMBnegprot (pid 7940)
Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [XENIX CORE]
Requested protocol [MICROSOFT NETWORKS 1.03]
Requested protocol [LANMAN1.0]
Requested protocol [Windows for Workgroups 3.1a]
Requested protocol [LM1.2X002]
Requested protocol [LANMAN2.1]
Requested protocol [NT LM 0.12]
Selected protocol NT LM 0.12
1998/06/30 18:03:03 Transaction 2 of length 149
switch message SMBsesssetupX (pid 7940)
Domain=[Q9JNT001] NativeOS=[Windows NT 179] NativeLanMan=[]
sesssetupX:name=[CMTUMB]
Trying username cmtumB
Trying username cmtumB
Trying username cmtumB
Trying username cmtumB
Registered username sambagst for guest access
Chained message
switch message SMBtconX (pid 7940)
Got device type IPC
Trying username ipc$
ACCEPTED: guest account and guest ok
found free connection number 102
Connect path is /tmp
chdir to /tmp
chdir to /usr/local/samba/lib
1998/06/30 18:03:03 q9j84 (164.20.58.30) connect to service IPC$ as user
sambagst (uid=65532,gid=50) (pid 7940)
1998/06/30 18:03:03 tconX service=ipc$ user=sambagst cnum=102
1998/06/30 18:03:03 Transaction 3 of length 118
switch message SMBtrans (pid 7940)
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Running the command `lpq -Pduplex' gave 256
printqgetinfo: errorcode 0
1998/06/30 18:03:03 Transaction 4 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:03 Transaction 5 of length 137
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=53 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN>
(tdscnt=0,tpscnt=53,mdrcnt=65535,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:03 Transaction 6 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:03 Transaction 7 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:03 Transaction 8 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:04 Transaction 9 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:04 Transaction 10 of length 137
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=53 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN>
(tdscnt=0,tpscnt=53,mdrcnt=65535,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:08 Transaction 11 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:08 Transaction 12 of length 73
switch message SMBtconX (pid 7940)
chdir to /usr/local/samba/lib
Got device type ?????
Trying username dupleX
1998/06/30 18:03:08 invalid username/password for duplex
1998/06/30 18:03:08 error packet at line 171 cmd=117 (SMBtconX) eclass=2 ecode=2
error string = Invalid argument
1998/06/30 18:03:08 Transaction 13 of length 118
switch message SMBtrans (pid 7940)
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:08 Transaction 14 of length 73
switch message SMBtconX (pid 7940)
chdir to /usr/local/samba/lib
Got device type ?????
Trying username dupleX
1998/06/30 18:03:08 invalid username/password for duplex
1998/06/30 18:03:08 error packet at line 171 cmd=117 (SMBtconX) eclass=2 ecode=2
error string = Invalid argument
1998/06/30 18:03:14 Transaction 15 of length 118
switch message SMBtrans (pid 7940)
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Running the command `lpq -Pduplex' gave 256
printqgetinfo: errorcode 0
1998/06/30 18:03:14 Transaction 16 of length 137
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=53 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN>
(tdscnt=0,tpscnt=53,mdrcnt=65535,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:24 Transaction 17 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Running the command `lpq -Pduplex' gave 256
printqgetinfo: errorcode 0
1998/06/30 18:03:24 Transaction 18 of length 137
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=53 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN>
(tdscnt=0,tpscnt=53,mdrcnt=65535,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
1998/06/30 18:03:34 Transaction 19 of length 118
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=34 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=34,mdrcnt=1024,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=3 name=duplex
Running the command `lpq -Pduplex' gave 256
printqgetinfo: errorcode 0
1998/06/30 18:03:34 Transaction 20 of length 137
switch message SMBtrans (pid 7940)
chdir to /usr/local/samba/lib
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=53 setup=0
named pipe command on <LANMAN> name
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN>
(tdscnt=0,tpscnt=53,mdrcnt=65535,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=duplex
Using cached lpq output
printqgetinfo: errorcode 0
Closing connections
1998/06/30 18:03:39 Server exit (caught signal)
chdir to /usr/local/samba/lib
Closing connections
1998/06/30 18:03:39 q9j84 (164.20.58.30) closed connection to service IPC$
Yielding connection to 102 IPC$
1998/06/30 18:03:39 Server exit (caught signal)