I've gotten more detail for the problem that I'm having. This problem
occurs on multiple Win 2K machines. I set log level = 8 and got the
output for this event. I've attached the output of the log to the end
of the message. This error occurs when:
1.) a printer is caputred to a certain port. In this case lpt2
2.) a file is copied to the port
James Hubbard
P.S. See error log below. I apologize for the length.
James Hubbard wrote:
Hello,
I've got a problem with printing on a Windows 2K box. Printing from
that box to a samba server via the normal print mechanism works fine.
The problem is when the person needs to print to a lpt port. The
capture succeeds, but when the file is copied to lpt2 it never gets
printed.
There are other machines that can do the capture and copy to the lpt
port but they are Win 9x. The files being copied are plot files
generated by a cad program.
I noticed in the How-To that using enumports might be needed to make
using lpt ports work. It's not working though and I'm still getting the
same error message. I've just started using disable spoolss = yes but
that doesn't seem to help either.
All relevant information is below. Any help is appreciated.
James Hubbard
This is the command being used to capture the port.
net use lpt2: \\server-bristol\hp450c
Samba version 2.2.5
RedHat 7.2
Windows 2K with the latest service packs.
smb.conf
[global]
..
printcap name = /etc/printcap
load printers = yes
enumports command=/home/samba/ports.sh
disable spoolss = yes
printing = lprng
...
security = share
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
public = yes
use client driver = yes
This is the error messages that I'm getting in the log file for that
machine.
[2002/10/15 17:04:23, 2] smbd/reply.c:reply_sesssetup_and_X(982)
Defaulting to Lanman password for mike_r
[2002/10/15 17:04:23, 4] smbd/password.c:password_ok(593)
Null passwords not allowed.
[2002/10/15 17:04:23, 3] smbd/reply.c:reply_sesssetup_and_X(1039)
Registered username nobody for guest access
[2002/10/15 17:04:23, 6] smbd/reply.c:reply_sesssetup_and_X(1108)
Client requested max send size of 65535
[2002/10/15 17:04:23, 3] smbd/process.c:chain_reply(1022)
Chained message
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(268)
size=164
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=24
smb_flg2=18439
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(276)
smb_tid=0
smb_pid=65279
smb_uid=0
smb_mid=46592
smt_wct=4
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(285)
smb_vwv[0]=255 (0xFF)
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(285)
smb_vwv[1]=164 (0xA4)
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(285)
smb_vwv[2]=8 (0x8)
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(285)
smb_vwv[3]=1 (0x1)
[2002/10/15 17:04:23, 5] lib/util.c:show_msg(291)
smb_bcc=31
[2002/10/15 17:04:23, 3] smbd/process.c:switch_message(684)
switch message SMBtconX (pid 30505)
[2002/10/15 17:04:23, 3] smbd/sec_ctx.c:set_sec_ctx(313)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/10/15 17:04:23, 5] smbd/uid.c:change_to_root_user(216)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2002/10/15 17:04:23, 4] smbd/reply.c:reply_tcon_and_X(335)
Got device type ?
[2002/10/15 17:04:23, 3] lib/access.c:check_access(318)
check_access: no hostnames in host allow/deny list.
[2002/10/15 17:04:23, 2] lib/access.c:check_access(327)
Allowed connection from (192.168.83.31)
[2002/10/15 17:04:23, 4] smbd/password.c:password_ok(593)
Null passwords not allowed.
[2002/10/15 17:04:23, 3] smbd/password.c:authorise_login(854)
authorise_login: ACCEPTED: guest account and guest ok (nobody)
[2002/10/15 17:04:23, 3] smbd/service.c:make_connection(491)
Connect path is /var/spool/samba
[2002/10/15 17:04:23, 3] smbd/sec_ctx.c:push_sec_ctx(281)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2002/10/15 17:04:23, 3] smbd/uid.c:push_conn_ctx(285)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2002/10/15 17:04:23, 3] smbd/sec_ctx.c:set_sec_ctx(313)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2002/10/15 17:04:23, 3] smbd/sec_ctx.c:get_current_groups(162)
get_current_groups: user is in 1 groups: 99
[2002/10/15 17:04:23, 3] smbd/sec_ctx.c:pop_sec_ctx(420)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/10/15 17:04:23, 3] smbd/sec_ctx.c:get_current_groups(162)
get_current_groups: user is in 1 groups: 99
[2002/10/15 17:04:23, 5] smbd/connection.c:claim_connection(156)
claiming hp450c 0
[2002/10/15 17:04:23, 5] smbd/password.c:create_nt_token(253)
user token sid S-1-5-21-1044157696-2239056659-582067912-1198
[2002/10/15 17:04:23, 5] smbd/password.c:create_nt_token(253)
user token sid S-1-5-21-1044157696-2239056659-582067912-1199
[2002/10/15 17:04:23, 5] smbd/password.c:create_nt_token(253)