setdriver failes

Patrik Carlsson pc at hig.se
Thu Mar 20 08:43:44 GMT 2003


Thank you for you answer...
But I have checked what it say's in the faq.

And I am an printer admin, I'm the owner of the print$ directory.
The printer exists in Samba..

Here's the log from samba

[2003/03/19 13:01:54, 3] smbd/ipc.c:api_fd_reply(296)
  Got API command 0x26 on pipe "spoolss" (pnum 7489)free_pipe_context:
destroyin
g talloc pool of size 0
[2003/03/19 13:01:54, 3] rpc_server/srv_pipe.c:api_pipe_request(1165)
  Doing \PIPE\spoolss
[2003/03/19 13:01:54, 3] rpc_server/srv_pipe.c:api_rpcTNP(1197)
  api_rpcTNP: pipe 29833 rpc command: SPOOLSS_SETPRINTER
[2003/03/19 13:01:54, 3] rpc_server/srv_spoolss_nt.c:update_printer(5291)
  update_printer: printer property change denied by handle
[2003/03/19 13:01:54, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(444)
  free_pipe_context: destroying talloc pool of size 1914
[2003/03/19 13:01:54, 3] smbd/process.c:process_smb(846)
  Transaction 18 of length 122


And the log from rpcclient


rpc_check_hdr: rdata->data_size = 28
000000 smb_io_rpc_hdr rpc_hdr
    0000 major     : 05
    0001 minor     : 00
    0002 pkt_type  : 02
    0003 flags     : 03
    0004 pack_type0: 10
    0005 pack_type1: 00
    0006 pack_type2: 00
    0007 pack_type3: 00
    0008 frag_len  : 001c
    000a auth_len  : 0000
    000c call_id   : 00000009
000010 smb_io_rpc_hdr_resp rpc_hdr_resp
    0010 alloc_hint: 00000004
    0014 context_id: 0000
    0016 cancel_ct : 00
    0017 reserved  : 00
rpc_api_pipe: len left: 0 smbtrans read: 28
rpc_api_pipe: fragment first and last both set
000018 spoolss_io_r_setprinter
    0018 status: WERR_ACCESS_DENIED
make_spoolss_q_closeprinter
000000 spoolss_io_q_closeprinter
    000000 smb_io_pol_hnd printer handle
        0000 data1: 00000000
        0004 data2: 00000002
        0008 data3: 0000
        000a data4: 0000
        000c data5: 42 ec 76 3e b4 58 00 00



and som stuff from the smb.conf

[global]

# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = HIG
   netbios name = PRINTSERVER
   netbios aliases = PR-SERV

   hosts allow = 127.0.0.1 130.243.0.0/255.255.240.0 193.11.48.0/255.255.240.0 192.168.13.0/255.255.255.0
   load printers = yes
   printing = cups
   printcap name = cups
   use client driver = yes
   printer admin = pc, @wheel, root

   security = domain
   password server = mentos
   encrypt passwords = yes

#============================ Share Definitions ==============================

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   public = yes
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes
#   printer admin = pc root pradm

[print$]
   comment = Printer Drivers
   path = /opt/samba/drivers
   browseable = yes
   guest ok = no
   read only = yes
   write list = pc, @wheel, root


If you need more information I will send you the complete logs...

Tia
Patrik

------------------------------------------------------
Patrik Carlsson			Högskolan i Gävle
Driftsansvarig, IT-enheten	Kungsbäcksvägen 47
026-64 85 00, 070-329 88 25	801 76 Gävle
Patrik.Carlsson at hig.se
------------------------------------------------------

On Wed, 19 Mar 2003, Jelmer Vernooij wrote:

> On Wed, Mar 19, 2003 at 10:23:21AM +0100, Patrik Carlsson wrote about 'setdriver failes':
> > Hi List..
> > I have earlier posted my problem to the samba at samba.org, but got no
> > answer...
> > So I try this list now...
> > Please forgive me if I'm on the wrong list, but I really need this to
> > work..
>
> > So, my problem.
>
> > I have set up an CUPS-server to handle our printing, on this machine
> > I also set up Samba.
> > The samba (2.2.8) is in a domain witch an samba-pdc (2.2.5)
> > The server is RedHat 8.0
> > Our users are in NIS+ (YP-compatible) and in an local smbpasswd on the
> > PDC.
>
> > I managed to install about 50 printers and have the Microsoft clients to
> > download the drivers for the printers. But now I'm not able to set the
> > driver.
> > I can install more printers, and mount them on the clients, but the
> > clients can't download the drivers for the new printers.
>
> > When I run cupsaddsmb I get the  NT_STATUS_UNSUCCESSFUL error-message.
> > It is the rpcclient -U 'user%secret'-c 'setdriver printer printer' who
> > fails.
> > When i debug the rpcclient I get WERR_ACCESS_DENIED.
>
> > I am printer admin and I'm the owner of the directory of print$.
> > And the files are being copied to the right place, but I can't
> > get the clients to download the files.
> > The client say that there is no driver on the server.
>
> > So now my question's so I can solve this problem...
> > Where do rpccclient check the printer admin user?
> > On the local machine? or the PDC?
> > In some specific file?
>
> Check the documentation(FAQ) in HEAD CVS.
>
> Jelmer
>
> --
> Jelmer Vernooij                                      <jelmer at samba.org>
> Pending (unfinished) patches                         http://samba.org/~jelmer/diffs.php
>



More information about the samba-technical mailing list