[Samba] RE: Clarifying CUPS Printing

Ulrich Kohlhase Ulrich.Kohlhase at t-online.de
Sat Nov 2 02:35:00 GMT 2002


> 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)





More information about the samba mailing list