OVH Cloud OVH Cloud

Trouble with cups and page_log

1 réponse
Avatar
Stephane
Hi,

I get troubles with Cups.
I would like to use /var/log/cups/page_log to be able to know who prints an=
d=20
how much?
The server is SambaEdu3 Debian sarge.

I uncomment
PageLog /var/log/cups/page_log
in /etc/cups/cupsd.conf and restart cupsys.
I create /var/log/cups/page_log using touch but it doesn't work.
Printing is OK, but nothing is written in /var/log/cups/page_log

I try to do the same on my personal computer (Debian Sarge too) but it does=
n't=20
work.
I get the same trouble.

My /etc/cups/cupsd.conf:

# egrep -v "(^$|^#)" /etc/cups/cupsd.conf
DefaultCharset notused
LogLevel info
PageLog /var/log/cups/page_log
Printcap /var/run/cups/printcap
Port 631
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /jobs>
AuthType Basic
AuthClass User
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

and /var/log/cups/page_log is empty.

I did test a few years ago (OS: Mandrake 9.1) and it worked:
http://stephane.boireau.free.fr/informatique/quotas_cups/quotas_cups.html

Do you know what I should do to get /var/log/cups/page_log OK?

Thanks!
=2D-=20
St=E9phane.

1 réponse

Avatar
Stephane
Bonsoir,

Je reprends en français...

Je rencontre un problème avec Cups.
Je souhaite activer le renseignement de /var/log/cups/page_log pour pouvoir
rendre compte sur un serveur de fichiers SambaEdu3 de qui abuse des
impression (pas question de mettre des quotas pour le moment...).

J'ai décommenté la ligne
PageLog /var/log/cups/page_log
du /etc/cups/cupsd.conf et relancé cupsys sur la Debian Sarge.
J'ai aussi créé le fichier /var/log/cups/page_log par un touch mais rie n n'y
fait.
Les impressions fonctionnent, mais le fichier n'est pas renseigné.

J'ai ensuite essayé la même opération sur ma debian sarge perso sans plus de
succès.

Avec la config suivante le page_log reste vide:

# egrep -v "(^$|^#)" /etc/cups/cupsd.conf
DefaultCharset notused
LogLevel info
PageLog /var/log/cups/page_log
Printcap /var/run/cups/printcap
Port 631
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /jobs>
AuthType Basic
AuthClass User
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

J'avais fait des essais il y a quelques années sous Mandrake et cela
fonctionnait:
http://stephane.boireau.free.fr/informatique/quotas_cups/quotas_cups.html

Avez-vous une idée de comment procéder?

Est-ce qu'un utilisateur de Debian Etch pourrait me dire si avec la version de
cups installée en etch, on a un page_log qui se remplit lors des impressi ons
lorsque la ligne du /etc/cups/cupsd.conf est décommentée?

Merci.
--
Stéphane.