[cups.general] Unable to set page-limit

Michael R Sweet msweet at apple.com
Tue Nov 6 09:14:42 PST 2007


Jabka Atu wrote:
> Hello.
> 
> On my configuration i wish that only two user could print and each one
> could print upto 20 pages a day.
> 
> i went to admin and set the allowed users for a printer (and wrote
> them as "foo1 foo2")
> 
> went to the console to use lpadmin:
> 
> #lpadmin -p printer -o job-quota-period=6004800 -o job-page-limit= 20
> 
> but when i tested that setting (by printing 40 pages ) it still printed.

First, CUPS quotas allow a single job to go over the limit.  The
second job should not print.  If you need tighter controls, look at
third-party solutions like Pykota which provide greater control than
the basic CUPS functionality.

Second, 1 day is 86400 seconds, not 6004800 (which is 69.5 days... :)

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list