Samba and [print$] share

Lawrence Walton lawrence at the-penguin.otak.com
Fri Sep 21 14:40:03 GMT 2001


Lawrence Walton [lawrence at the-penguin.otak.com] wrote:
> Hello all I have been lurking for a while on the samba list and a samba
> user for quite some time. I have been playing with samba 2.2.x and now
> am getting ready to deploy a production box. I will be running several
> services but first and most important is samba. I am using samba 2.2.1a
> from Debian, and it is running as a PDC on a test network.
> 
> It appears to be working fairly well with the exception of the new
> printer$ format. I am unable other then as root (which I hate enabling
> in samba) to browse the printers$ share. using the old format printers
> it works fine.
> 
> My entry in smb.conf is:
> 
> [print$]
> path = /usr/local/etc/samba/printers
> guest ok = yes
> browseable = yes
> read only = yes
> write list = lawrence, @staff
> printer admin = lawrence, @staff 
> 
> Permissions on the directorys are:
> 
> /usr/local/etc/samba/printers/W32X86:
> total 12
> drwxrwxr-x    3 root     staff        4096 Sep 20 15:06 .
> drwxrwxr-x    4 root     staff        4096 Sep 19 14:31 ..
> 
> /usr/local/etc/samba/printers/WIN40:
> total 8
> drwxrwxr-x    2 root     staff        4096 Sep 19 14:31 .
> drwxrwxr-x    4 root     staff        4096 Sep 19 14:31 ..
> 
> 
> 
> I also as root am unable to successfully add printer drivers with either
> imprints:
> 
> logging in as root
> 
> Specified model (Cannon iR600-550-60 PCL) not present in .INF file.
> [rpc]: Printer Driver Information : 
> [rpc]:     Printer Model   = Cannon iR600-550-60 PCL
> [rpc]:     Environment     = W32X86
> [rpc]:     Driver Filename = 
> [rpc]:     Data Filename   = 
> [rpc]:     Config Filename = 
> [rpc]:     Help Filename   = 
> [rpc]: Installing Windows NT x86 drivers for Cannon iR600-550-60 PCL...
> [rpc]: Printer Driver Upload Directory = \\TEMAE01\print$\W32X86
> [rpc]: ERROR! Windows NT error code : [result was NT_STATUS_ACCESS_VIOLATION]
> 
> Or with Windows NT APW Also login in as root. (can't see print shares
> other wise) Files are copied, and at the end I get a error message:
> 
> "Operation Could not be Completed this function is only valid in windows NT mode."
> 
> Can anyone shed some light on what I might be doing wrong?
> 
> Before you say "download the CVS", is there allready debian package
> support in CVS? if not can I work with the maintainer to add it?
> 
> /me ducks and runs because I did not ask him first. :)
> 
> I am hoping that this problem is of the Read The Fine Manual sort. and
> someone can point me to the right one...
> 
Sorry to reply to my own mail.

I turned loging on to = 10

and tried to restall the printer with APW
the log.smbd showed these errors at the end of the instalation.
There where a couple intersting entrees. 

Policy not found
Printer handle not found
cannot find open file with dev = 302


a_hnd.c:find_policy_by_hnd_internal(158)
smb_uid=100
Policy not found: [000] 00 00 00 00 02 00 00 00  00 00 00 00 6C 98 AB 3B  ........ ....l..;
smb_mid=14209
[2001/09/21 14:23:27, 4] lib/util.c:dump_data(1489)
smt_wct=0
[010] D8 16 00 00                                       .... 
[2001/09/21 14:23:27, 5] lib/util.c:show_msg(308)
[2001/09/21 14:23:27, 3] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(241)
smb_bcc=0
find_printer_index_by_hnd: Printer handle not found: _spoolss_rfnpcnex: Invalid handle (OTHER).
[2001/09/21 14:23:27, 6] lib/util_sock.c:write_socket(559)
[2001/09/21 14:23:27, 5] rpc_parse/parse_prs.c:prs_debug(63)
write_socket(13,39)
000000 spoolss_io_r_rfnpcnex 
[2001/09/21 14:23:27, 6] lib/util_sock.c:write_socket(562)
[2001/09/21 14:23:27, 5] rpc_parse/parse_prs.c:prs_uint32(547)
write_socket(13,39) wrote 39
0000 info_ptr: 00000001
[2001/09/21 14:23:27, 3] smbd/oplock.c:initial_break_processing(493)
[2001/09/21 14:23:27, 6] rpc_parse/parse_prs.c:prs_debug(63)
initial_break_processing: called for dev = 302, inode = 164173 tv_sec = 3babafc1, tv_usec = d13f9.
000004 smb_io_notify_info notify info
Current oplocks_open (exclusive = 0, levelII = 0)
[2001/09/21 14:23:28, 5] rpc_parse/parse_prs.c:prs_uint32(547)
[2001/09/21 14:23:28, 3] smbd/oplock.c:initial_break_processing(510)
0004 count: 00000000
initial_break_processing: cannot find open file with dev = 302, inode = 164173 allowing break to succeed.
[2001/09/21 14:23:28, 5] rpc_parse/parse_prs.c:prs_uint32(547)
[2001/09/21 14:23:28, 4] smbd/uid.c:become_user(119)
0008 version: 00000000
                                                           
In addition the windows NT client message changed to
"Printer driver Dor Windows NT 4.0 x86 could not be installed. The remote procedure call failed."

Any help would be greatly appreciated.
-- 
*--* Mail: lawrence at otak.com
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://www.otak-k.com/~lawrence/
--------------------------------------
- - - - - - O t a k  i n c . - - - - - 






More information about the samba mailing list