[Samba] Need Samba printing help

Martin Zielinski mz at seh.de
Tue Jan 20 10:16:22 GMT 2004


1. Please check, wether you have cups support compiled in.
(Does ldd smbd show the libcups.so...?).
It really seems, that it is not the case.

2. When using cups the print command smb-entry is ignored!
This is, what the HOWTO says.

Bye, 
Martin

On Monday 19 January 2004 22:45, Mark Fowle wrote:
> The printer is a Lexmark E323 network laser printer -
>
> In the smb.conf file I have:
> [global]
> .
> .
> .
>    printcap name = cups
>    load printers = yes
>    use client driver = no
>    disable spoolss = no
>    printing = cups
>    printer admin = @printadmin
>    show add printer wizard = yes
> .
> .
> .
> ### Shared Section ###
> .
> .
> [printers]
>    comment = All Printers
>    path = /var/spool/cups
>    browseable = no
>    guest ok = yes
>    writable = no
>    printable = yes
>    public = yes
>    read only = no
>
> [print$]
>    path = /etc/samba/drivers
>    browseable = yes
>    guest ok = yes
>    read only = yes
>    write list = root, @printadmin
> [E323]
>  comment = E323 Test laser printer
>  path = /var/spool/samba/E323
>  printer name = E323
>  writable = yes
>  public = yes
>  printable = yes
>  print command = lpr-cups -P %p -o raw %s -r
>  printer admin = root, @printadmin
>
> # A useful application of samba is to make a PDF-generation service
> # To streamline this, install windows postscript drivers (preferably
> colour)
> # on the samba server, so that clients can automatically install them.
>
> [pdf-generator]
>    path = /var/tmp
>    guest ok = No
>    printable = Yes
>    comment = PDF Generator (only valid users)
>    #print command = /usr/share/samba/scripts/print-pdf file path
> win_path recipient IP &
>    print command = /usr/share/samba/scripts/print-pdf %s ~%u
> \\\\\\\\%L\\\\%u %m %I &
>
> On Mon, 2004-01-19 at 15:59, alaslavic at havertys.com wrote:
> > Post the printer - related parts of your smb.conf file.  There are some
> > options like:
> > printcap = cups
> > printing = cups
> >
> > ...that may be necessary to allow cups to edit your printcap file.
> > Additionally, you cannot add print drivers in samba if you have:
> > use client driver = yes
> >
> > Alex Laslavic
> > Havertys Tech Services
> >
> > samba-bounces+alaslavic=havertys.com at lists.samba.org wrote on 01/19/2004
> >
> > 03:16:52 PM:
> > > I am posting again - Please help.
> > >
> > > I am trying to add print drivers for a samba shared printer to a
> > > Windows2000 group - Everything up to this step works - I am using Samba
> > > 3.0.1
> > >
> > > rpcclient -d 100 -Uroot -c 'adddriver "Windows NT x86" \
> > > E323:LMAAE1DD.dll:\
> > > LMAAE1P1.PPD:LMAAE1DA.DLL:LMAAE1DA.HLP:\
> > > NULL:RAW:LMAA1B1.DLL,LMAAE1BJ.DLL,LMAAE1BT.DLL,LMAAE1DA.ALL,
> > > LMAAE1ED.DLL,LMAAE1PI.EXE,\
> > > LMAAE1TD.DLL,LMAAE1TE.DLL,LMAAE1DA.CNT,LMAAE1DF.DLL,LMAAE1DL.DLL,
> > > LMAAE1PU.DLL,\
> > > LMAAE1SE.DLL,LMAAE1TF.DLL,LMAAE1TH.HLP,LMAAE1UZ.ZIP' SambaEnt
> > >
> > > The result I get is:
> > >
> > > result was WERR_ACCESS_DENIED
> > >
> > > In the log.smbd I get the following error:
> > >
> > > [2004/01/18 17:29:22, 0] printing/pcap.c:pcap_printer_fn(361)  Unable
> > > to open printcap file cups for read!
> > >
> > > I'm not sure whats causing this error. I have changed the permissions
> > > onthe /etc/printcap file to be wide open, and that doesn't seem to
> > > workeither.  Can anyone shed some light on where I might have messed
> > > up?
> > >
> > > Thanks,Mark
> > > --
> > > Mark Fowle
> > > mark at thefowles.com
> > >
> > >
> > > [attachment "signature.asc" deleted by Alex Laslavic/MIS/Havertys] --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
Martin Zielinski                       mz at seh.de
Software Development
SEH Computertechnik GmbH     www.seh.de



More information about the samba mailing list