Thanks for providing this additional log data - assuming that the printer you are trying to access is called "merlin" I think these are the pertinent log messages:
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/09/07 07:08:19.643668, 5] ../libcli/security/security_token.c:53(security_token_debug)
Security token: (NULL)
[2012/09/07 07:08:19.643686, 5] auth/token_util.c:527(debug_unix_user_token)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2012/09/07 07:08:19.643715, 5] smbd/uid.c:400(change_to_root_user)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/09/07 07:08:19.643739, 4] smbd/reply.c:794(reply_tcon_and_X)
Client requested device type [LPT1:] for share [MERLIN]
[2012/09/07 07:08:19.643766, 7] param/loadparm.c:9830(lp_servicenumber)
lp_servicenumber: couldn't find merlin
[2012/09/07 07:08:19.643785, 5] lib/username.c:171(Get_Pwnam_alloc)
Finding user merlin
[2012/09/07 07:08:19.643803, 5] lib/username.c:116(Get_Pwnam_internals)
Trying _Get_Pwnam(), username as lowercase is merlin
[2012/09/07 07:08:19.643850, 5] lib/username.c:134(Get_Pwnam_internals)
Trying _Get_Pwnam(), username as uppercase is MERLIN
[2012/09/07 07:08:19.643900, 5] lib/username.c:143(Get_Pwnam_internals)
Checking combinations of 0 uppercase letters in merlin
[2012/09/07 07:08:19.643921, 5] lib/username.c:149(Get_Pwnam_internals)
Get_Pwnam_internals didn't find user [merlin]!
[2012/09/07 07:08:19.643945, 4] auth/user_util.c:361(map_username)
Scanning username map /etc/samba/smbusers
[2012/09/07 07:08:19.643968, 3] smbd/service.c:343(find_service)
checking for home directory merlin gave (NULL)
[2012/09/07 07:08:19.643991, 3] smbd/service.c:357(find_service)
checking whether merlin is a valid printer name...
[2012/09/07 07:08:19.644022, 1] printing/printer_list.c:94(printer_list_get_printer)
Failed to fetch record!
[2012/09/07 07:08:19.644042, 3] smbd/service.c:371(find_service)
merlin is not a valid printer name
[2012/09/07 07:08:19.666295, 0] param/loadparm.c:9114(process_usershare_file)
process_usershare_file: stat of /var/lib/samba/usershares/merlin failed. No such file or directory
[2012/09/07 07:08:19.666354, 3] smbd/service.c:444(find_service)
find_service() failed to find service merlin
[2012/09/07 07:08:19.666392, 3] smbd/service.c:1307(make_connection)
win95 (ipv4:192.168.1.12:1025) couldn't find service merlin
[2012/09/07 07:08:19.666440, 3] smbd/error.c:100(error_packet_set)
error packet at smbd/reply.c(803) cmd=117 (SMBtconX) eclass=1 ecode=67
[2012/09/07 07:08:19.666467, 5] lib/util.c:332(show_msg)
Hi Colin
Thanks for providing this additional log data - assuming that the printer you are trying to access is called "merlin" I think these are the pertinent log messages:
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 security/ security_ token.c: 53(security_ token_debug) util.c: 527(debug_ unix_user_ token) c:400(change_ to_root_ user) to_root_ user: now uid=(0,0) gid=(0,0) c:794(reply_ tcon_and_ X) c:9830( lp_servicenumbe r) c:171(Get_ Pwnam_alloc) c:116(Get_ Pwnam_internals ) c:134(Get_ Pwnam_internals ) c:143(Get_ Pwnam_internals ) c:149(Get_ Pwnam_internals ) internals didn't find user [merlin]! util.c: 361(map_ username) c:343(find_ service) c:357(find_ service) printer_ list.c: 94(printer_ list_get_ printer) c:371(find_ service) c:9114( process_ usershare_ file) usershare_ file: stat of /var/lib/ samba/usershare s/merlin failed. No such file or directory c:444(find_ service) c:1307( make_connection ) 168.1.12: 1025) couldn't find service merlin c:100(error_ packet_ set) c:332(show_ msg)
[2012/09/07 07:08:19.643668, 5] ../libcli/
Security token: (NULL)
[2012/09/07 07:08:19.643686, 5] auth/token_
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2012/09/07 07:08:19.643715, 5] smbd/uid.
change_
[2012/09/07 07:08:19.643739, 4] smbd/reply.
Client requested device type [LPT1:] for share [MERLIN]
[2012/09/07 07:08:19.643766, 7] param/loadparm.
lp_servicenumber: couldn't find merlin
[2012/09/07 07:08:19.643785, 5] lib/username.
Finding user merlin
[2012/09/07 07:08:19.643803, 5] lib/username.
Trying _Get_Pwnam(), username as lowercase is merlin
[2012/09/07 07:08:19.643850, 5] lib/username.
Trying _Get_Pwnam(), username as uppercase is MERLIN
[2012/09/07 07:08:19.643900, 5] lib/username.
Checking combinations of 0 uppercase letters in merlin
[2012/09/07 07:08:19.643921, 5] lib/username.
Get_Pwnam_
[2012/09/07 07:08:19.643945, 4] auth/user_
Scanning username map /etc/samba/smbusers
[2012/09/07 07:08:19.643968, 3] smbd/service.
checking for home directory merlin gave (NULL)
[2012/09/07 07:08:19.643991, 3] smbd/service.
checking whether merlin is a valid printer name...
[2012/09/07 07:08:19.644022, 1] printing/
Failed to fetch record!
[2012/09/07 07:08:19.644042, 3] smbd/service.
merlin is not a valid printer name
[2012/09/07 07:08:19.666295, 0] param/loadparm.
process_
[2012/09/07 07:08:19.666354, 3] smbd/service.
find_service() failed to find service merlin
[2012/09/07 07:08:19.666392, 3] smbd/service.
win95 (ipv4:192.
[2012/09/07 07:08:19.666440, 3] smbd/error.
error packet at smbd/reply.c(803) cmd=117 (SMBtconX) eclass=1 ecode=67
[2012/09/07 07:08:19.666467, 5] lib/util.