printer installation on a HP-UX samba
Homann, Mathias
Mathias.Homann at airbus.dasa.de
Tue Feb 26 01:56:03 GMT 2002
Hi,
I have serious trouble with printer driver uploading into samba from
hp-ux with the imprints package.
When I use Win2K's APW to upload printers it works just fine.
First I had samba 2.2.2 here. After lots of ethernsniffing I found:
1. win2k does NOT use spoolss rpc calls to administer printers on a
samba server! at least not such as can be identified as SPOOLSS calls by
the latest version of ethereal. samba (rpcclient) does.
2. somewhere deep in the functions for unicode<->ascii translations must
be a bug related to big- or little-endianess, as on HP-UX the table of
dependend driver files gets thoroughly mangled (containing only _
instead of the filenames) but on linux 2.4 it works fine.
So I thought 'maybe that unicode bug is fixed in 2.2.3a' and gave that
one a try. Not working, either, but now it fails on linux and hp-ux with
the same error message in log.smb (which I will cut out and attach), and
when I go deeper in the logs, it looks to me as if rpcclient connects to
the print$ share as user lp (which is not in the printer admin group of
course), no matter which username it was given by the -U parameter.
any thoughts?
[MH]
----- log snuippets -----
[2002/02/26 10:46:08, 10] lib/username.c:user_in_list(450)
user_in_list: checking user lp in list
[2002/02/26 10:46:08, 3] smbd/sec_ctx.c:set_sec_ctx(314)
setting sec ctx (9, 7) - sec_ctx_stack_ndx = 1
[2002/02/26 10:46:08, 3] smbd/sec_ctx.c:set_sec_ctx(319)
1 user groups:
7
[2002/02/26 10:46:08, 5] smbd/uid.c:change_to_user(201)
change_to_user uid=(0,9) gid=(0,7)
[2002/02/26 10:46:08, 1] smbd/service.c:make_connection(615)
ux-test222 (173.82.208.245) connect to service print$ as user lp
(uid=9, gid=7) (pid 9875)
[a bit about name mangling left out]
[2002/02/26 10:46:08, 3] smbd/reply.c:rename_internals(3716)
rename_internals: case_sensitive = 0, case_preserve = 1, short case
preserve = 1, directory = W32X86/optrac.ppd,
newname = W32X86/3/OPTRAC.PPD, newname_last_component = OPTRAC.PPD,
is_8_3 = 1
[2002/02/26 10:46:08, 3] smbd/reply.c:rename_internals(3788)
rename_internals: Error NT_STATUS_ACCESS_DENIED rename
W32X86/optrac.ppd -> W32X86/3/OPTRAC.PPD
[2002/02/26 10:46:08, 0]
printing/nt_printing.c:move_driver_to_download_area(1460)
move_driver_to_download_area: Unable to rename [W32X86/optrac.ppd] to
[W32X86/3/OPTRAC.PPD]
More information about the samba-technical
mailing list