cups quota problem

Giorgio Moscardi giorgio.moscardi at polito.it
Fri Nov 5 08:04:28 PST 2004


hi there,
i've got a problem with cups, v 1.1.22. i've setup 2 printers, one of which
should be subject to a quota system. i used lpadmin to turn it on, and
everything seems ok:

<DefaultPrinter laserjet_4100>
....
QuotaPeriod 86400
PageLimit 3
KLimit 0
</Printer>

i know that 3 is too little, but i used that to be able to make easy tests.
now, if i haven't printed anything yet, and i print a 6 pages document, the
document is printed with all the 6 pages. anything i try to print after
that triggers the quota exceeded error (i can see it in error_log). the
problem seems to be that cups only checks whether the next document can be
printed of not (that means whether the quota has been exceed or not), it
doesn't check how much of it can be printed. although it is counting the
pages correctly:

laserjet_4100 s98657 5 [05/Nov/2004:15:25:43 +0100] 1 1 - 130.192.9.10
laserjet_4100 s98657 5 [05/Nov/2004:15:25:43 +0100] 2 1 - 130.192.9.10
laserjet_4100 s98657 5 [05/Nov/2004:15:25:43 +0100] 3 1 - 130.192.9.10
laserjet_4100 s98657 5 [05/Nov/2004:15:25:43 +0100] 4 1 - 130.192.9.10
laserjet_4100 s98657 5 [05/Nov/2004:15:25:43 +0100] 5 1 - 130.192.9.10
laserjet_4100 s98657 5 [05/Nov/2004:15:25:43 +0100] 6 1 - 130.192.9.10

any hints? i know i should try pykota, but i dont want to install
postgresql. maybe when it will support mysql i'll give it a try.

ah, i should mention that the machine is a sun machine, which means it's
running on a sparc processor.




More information about the cups mailing list