1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. |
---|
2 | .TH PKUSERS "1" "f�ier 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" |
---|
3 | .SH NOM |
---|
4 | pkusers \- page de manuel de pkusers 1.24alpha12_unofficial |
---|
5 | .SH DESCRIPTION |
---|
6 | pkusers v1.24alpha12_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com |
---|
7 | .PP |
---|
8 | An Users and Groups Manager for PyKota. |
---|
9 | .PP |
---|
10 | command line usage : |
---|
11 | .IP |
---|
12 | pkusers [options] user1 user2 user3 ... userN |
---|
13 | .PP |
---|
14 | or : |
---|
15 | .IP |
---|
16 | pkusers \fB\-\-groups\fR [options] group1 group2 group3 ... groupN |
---|
17 | .PP |
---|
18 | options : |
---|
19 | .TP |
---|
20 | \fB\-v\fR | \fB\-\-version\fR |
---|
21 | Prints pkusers's version number then exits. |
---|
22 | .TP |
---|
23 | \fB\-h\fR | \fB\-\-help\fR |
---|
24 | Prints this message then exits. |
---|
25 | .TP |
---|
26 | \fB\-a\fR | \fB\-\-add\fR |
---|
27 | Adds users if they don't exist on the database. |
---|
28 | If they exist, they are modified unless |
---|
29 | \fB\-s\fR|\-\-skipexisting is also used. |
---|
30 | .TP |
---|
31 | \fB\-d\fR | \fB\-\-delete\fR |
---|
32 | Deletes users from the quota storage. |
---|
33 | .HP |
---|
34 | \fB\-D\fR | \fB\-\-description\fR d Adds a textual description to users or groups. |
---|
35 | .TP |
---|
36 | \fB\-g\fR | \fB\-\-groups\fR |
---|
37 | Edit users groups instead of users. |
---|
38 | .TP |
---|
39 | \fB\-o\fR | \fB\-\-overcharge\fR f |
---|
40 | Sets the overcharging factor applied to the user |
---|
41 | when computing the cost of a print job. Positive or |
---|
42 | negative floating point values are allowed, |
---|
43 | this allows you to do some really creative |
---|
44 | things like giving money to an user whenever |
---|
45 | he prints. The number of pages in a print job |
---|
46 | is not modified by this coefficient, only the |
---|
47 | cost of the job for a particular user. |
---|
48 | Only users have such a coefficient. |
---|
49 | .TP |
---|
50 | \fB\-i\fR | \fB\-\-ingroups\fR g1[,g2...] |
---|
51 | Puts the users into each of the groups |
---|
52 | listed, separated by commas. The groups |
---|
53 | must already exist in the Quota Storage. |
---|
54 | .TP |
---|
55 | \fB\-l\fR | \fB\-\-limitby\fR l |
---|
56 | Choose if the user/group is limited in printing |
---|
57 | by its account balance or by its page quota. |
---|
58 | The default value is 'quota'. Allowed values |
---|
59 | are 'quota' 'balance' 'noquota' 'noprint' |
---|
60 | and 'nochange' : |
---|
61 | .IP |
---|
62 | \- quota : limit by number of pages per printer. |
---|
63 | \- balance : limit by number of credits in account. |
---|
64 | \- noquota : no limit, accounting still done. |
---|
65 | \- nochange : no limit, accounting not done. |
---|
66 | \- noprint : printing is denied. |
---|
67 | .IP |
---|
68 | NB : nochange and noprint are not supported for groups. |
---|
69 | .TP |
---|
70 | \fB\-b\fR | \fB\-\-balance\fR b |
---|
71 | Sets the user's account balance to b. |
---|
72 | Account balance may be increase or decreased |
---|
73 | if b is prefixed with + or \-. |
---|
74 | WARNING : when decreasing account balance, |
---|
75 | the total paid so far by the user is decreased |
---|
76 | too. |
---|
77 | Groups don't have a real balance, but the |
---|
78 | sum of their users' account balance. |
---|
79 | .TP |
---|
80 | \fB\-C\fR | \fB\-\-comment\fR txt |
---|
81 | Defines some informational text to be associated |
---|
82 | with a change to an user's account balance. |
---|
83 | Only meaningful if \fB\-b\fR | \fB\-\-balance\fR is also used. |
---|
84 | .TP |
---|
85 | \fB\-r\fR | \fB\-\-remove\fR |
---|
86 | In combination with the \fB\-\-groups\fR option above, |
---|
87 | remove users from the specified users groups. |
---|
88 | .TP |
---|
89 | \fB\-s\fR | \fB\-\-skipexisting\fR |
---|
90 | In combination with the \fB\-\-add\fR option above, tells |
---|
91 | pkusers to not modify existing users. |
---|
92 | .IP |
---|
93 | user1 through userN and group1 through groupN can use wildcards |
---|
94 | if the \fB\-\-add\fR option is not set. |
---|
95 | .PP |
---|
96 | examples : |
---|
97 | .IP |
---|
98 | \f(CW$ pkusers --add john paul george ringo/ringo@example.com\fR |
---|
99 | .IP |
---|
100 | This will add users john, paul, george and ringo to the quota |
---|
101 | database. User ringo's email address will also be set to |
---|
102 | \&'ringo@example.com' |
---|
103 | .IP |
---|
104 | \f(CW$ pkusers --ingroups coders,it jerome\fR |
---|
105 | .IP |
---|
106 | User jerome is put into the groups "coders" and "it" which must |
---|
107 | already exist in the quota database. |
---|
108 | .IP |
---|
109 | \f(CW$ pkusers --limitby balance jerome\fR |
---|
110 | .IP |
---|
111 | This will tell PyKota to limit jerome by his account's balance |
---|
112 | when printing. |
---|
113 | .IP |
---|
114 | \f(CW$ pkusers --balance +10.0 --comment "He paid with his blood !" jerome\fR |
---|
115 | .IP |
---|
116 | This will increase jerome's account balance by 10.0 (in your |
---|
117 | own currency). You can decrease the account balance with a |
---|
118 | dash prefix, and set it to a fixed amount with no prefix. |
---|
119 | A comment will be stored for this balance change. |
---|
120 | .IP |
---|
121 | \f(CW$ pkusers --delete jerome rachel\fR |
---|
122 | .IP |
---|
123 | This will completely delete jerome and rachel from the quota |
---|
124 | database. All their quotas and jobs will be deleted too. |
---|
125 | .IP |
---|
126 | \f(CW$ pkusers --overcharge 2.5 poorstudent\fR |
---|
127 | .IP |
---|
128 | This will overcharge the poorstudent user by a factor of 2.5. |
---|
129 | .IP |
---|
130 | \f(CW$ pkusers --overcharge -1 jerome\fR |
---|
131 | .IP |
---|
132 | User jerome will actually earn money whenever he prints. |
---|
133 | .IP |
---|
134 | \f(CW$ pkusers --overcharge 0 boss\fR |
---|
135 | .IP |
---|
136 | User boss can print at will, it won't cost him anything because the |
---|
137 | cost of each print job will be multiplied by zero before charging |
---|
138 | his account. |
---|
139 | .PP |
---|
140 | This program is free software; you can redistribute it and/or modify |
---|
141 | it under the terms of the GNU General Public License as published by |
---|
142 | the Free Software Foundation; either version 2 of the License, or |
---|
143 | (at your option) any later version. |
---|
144 | .PP |
---|
145 | This program is distributed in the hope that it will be useful, |
---|
146 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
147 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
148 | GNU General Public License for more details. |
---|
149 | .PP |
---|
150 | You should have received a copy of the GNU General Public License |
---|
151 | along with this program; if not, write to the Free Software |
---|
152 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301, USA. |
---|
153 | .PP |
---|
154 | Merci d'envoyer les rapports de bugs � Jerome Alet \- alet@librelogiciel.com |
---|