1 | # $Id$ |
---|
2 | |
---|
3 | PyKota - Print Quota for CUPS and LPRng |
---|
4 | |
---|
5 | (c) 2003-2004 Jerome Alet <alet@librelogiciel.com> |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2 of the License, or |
---|
9 | (at your option) any later version. |
---|
10 | |
---|
11 | This program is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | GNU General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU General Public License |
---|
17 | along with this program; if not, write to the Free Software |
---|
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
19 | |
---|
20 | ==================================================================== |
---|
21 | |
---|
22 | This directory contains CGI scripts which you may find useful to |
---|
23 | put on a web server along with PyKota command line tools. |
---|
24 | |
---|
25 | Be sure to restrict access to these CGI scripts as necessary. |
---|
26 | |
---|
27 | If you protect access to printquota.cgi with user+password |
---|
28 | authentication, the REMOTE_USER CGI environment variable |
---|
29 | is honored, so an user can only see his own quota report, but |
---|
30 | not other users' quota. |
---|
31 | |
---|
32 | To make dumpykota.cgi work, you have to ensure that your web server |
---|
33 | runs it as a PyKota administrator. This means that dumpykota.cgi |
---|
34 | when run must be able to read the pykotadmin.conf file. There are |
---|
35 | several ways to do so, one of them is to put the user your web |
---|
36 | server normally runs as into the pykota group (which must be allowed |
---|
37 | to read pykotadmin.conf), then restart your web server : |
---|
38 | |
---|
39 | $ adduser www-data pykota |
---|
40 | $ /etc/init.d/apache restart |
---|
41 | |
---|
42 | This is probably not the safest way though, so you may want to |
---|
43 | restrict access further with an username and password, or use |
---|
44 | Apache's suExec mechanism to directly run this particular |
---|
45 | script as the pykota system user. Please refer to your web |
---|
46 | server's documentation for details. |
---|
47 | |
---|
48 | The web server doesn't need to be a print server nor a PyKota |
---|
49 | Storage Backend server, but it must contain a correctly configured |
---|
50 | PyKota installation. |
---|
51 | |
---|
52 | ==================================================================== |
---|