OpenPrinting / cups-sharing

Sharing server for CUPS 3.0
https://openprinting.github.io/cups/cups3.html
Apache License 2.0
6 stars 4 forks source link

Quota reset #1

Open kwilczek opened 1 year ago

kwilczek commented 1 year ago

Dear CUPS Team,

I know that there is a quota system (https://openprinting.github.io/cups/doc/accounting.html), but I'm unable to figure out how to reset the quota. Could someone shed some light on this and update the documentation?

We have a really simple use case:

Is it possible with the current quota implementation? I tried setting the quota and period to 0, etc. but nothing works. After setting the limit again, I get the info that my quota has already exhausted -- which means that the previous limit is still in use. And, are there any alive 3rd party quota solutions that you know of? I think that the pykota is EOL and I really can't find anything that is in wider use.

Kind regards,

-- Kamil

michaelrsweet commented 1 year ago

@kwilczek The current quota system (which has been unchanged for almost 20 years now...) basically implements a rolling quota period (the first two bullets) and does not offer a way to override or reset the quota short of changing the limit for all users on the printer.

Since it is unlikely that we'll update the accounting in cupsd before v3.0, I'm going to move this issue over to the "cups-sharing" project where we are tracking the future sharing server (which will replace cupsd for common printer sharing/accounting functionality).