[Samba] RE: Clarifying CUPS Printing

Kurt Pfeifle kpfeifle at danka.de
Sat Nov 2 17:19:01 GMT 2002


Ulrich Kohlhase wrote on Samba-digest:

> Message: 8 From: Ulrich.Kohlhase at t-online.de (Ulrich Kohlhase) 
> To: <samba at lists.samba.org> 
> Date: Sat, 2 Nov 2002 03:34:18 +0100 
> Subject: [Samba] RE: Clarifying CUPS Printing
> 
>> The docs state when using CUPS the relevent lines of SMB.CONF 
>> should look like this:
>> 
>> printing=cups
>> printcap=cups
>> 
>> And that any manual printing command are ignored.  However, if we set
>> printcap = cups nothing happens and we cannot see any printers.
>> 
>> What we do have is the following:
>> 
>> printer admin = @DomainAdmins,root
>> load printers = yes
>> printing = cups
>> printcap= /etc/printcap
>> print command = lpr.cups -r -P%p -o raw %s
>> lpq command = lpstat -o %p
>> lprm command = cancel.cups %p-%j
>> 
>> See any problems with this?
> 
> 
> Cups printcap is installed in "/etc" by default. We use the following
> settings for quite a while now:
> 
> printer admin = @root
> print command = /usr/bin/lpr -r -cups -P %p %s
> printing = cups
> load printers = Yes 
> printcap name = /etc/printcap
> lpq command = /usr/bin/lpq -P%p 
> lprm command = /usr/bin/lprm -P%p %j 
> lppause command = /usr/bin/lp -i %p-%j -H hold
> lpresume command = /usr/bin/lp -i %p-%j -H resume
> queuepause command = /usr/bin/disable %p
> queueresume command = /usr/bin/enable %p
> 
> Samba spool files get deleted just fine as requested by the "-r" switch
> ... (somebody mentioned spool files where left after jobs completed)

Ulrich,

it would help a lot if you gave the version numbers of CUPS and Samba.
Also, which operating system are you using? Is your Samba linked against
the libcups?

Cheers,
Kurt




More information about the samba mailing list