]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/ref-classes-conf.html
Merge changes from CUPS 1.5svn-r8842.
[thirdparty/cups.git] / doc / help / ref-classes-conf.html
CommitLineData
ef416fc2 1<HTML>
2<!-- SECTION: References -->
3<HEAD>
4 <TITLE>classes.conf</TITLE>
178cb736 5 <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
ef416fc2 6</HEAD>
7<BODY>
8
178cb736
MS
9<H1 CLASS="title">classes.conf</H1>
10
ef416fc2 11<P>The CUPS scheduler (cupsd) uses the
12<VAR>/etc/cups/classes.conf</VAR> file to store the list of
13available classes. This file contains only locally defined
14classes, not remote classes that are created automatically via
15browsing. Each directive is listed on a line by itself followed
16by its value. Comments are introduced using the number sign ("#")
17character at the beginning of a line.</P>
18
19<P>While the class configuration file consists of plain text and
20can be modified using your favorite text editor, you should
480ef0fe 21normally use the <A HREF="man-lpadmin.html">lpadmin(8)</A>
22command, web interface, or any of the available GUIs to manage
23your classes instead. If you do choose to edit this file
b226ab99
MS
24manually, you will need to stop the scheduler first, make your
25changes, and then start the scheduler to make them active.</P>
ef416fc2 26
27
480ef0fe 28<H2 CLASS="title"><A NAME="Accepting">Accepting</A></H2>
ef416fc2 29
480ef0fe 30<H3>Examples</H3>
ef416fc2 31
32<PRE CLASS="command">
480ef0fe 33&lt;Class name&gt;
34 ...
35 Accepting yes
36&lt;/Class&gt;
ef416fc2 37</PRE>
38
480ef0fe 39<H3>Description</H3>
ef416fc2 40
41<P>The <CODE>Accepting</CODE> directive defines the initial state
42of the <VAR>printer-is-accepting-jobs</VAR> attribute. This state
43is also set by the <CODE>accept(8)</CODE> and
44<CODE>reject(8)</CODE> commands:</P>
45
46<PRE CLASS="command">
47<KBD>/usr/sbin/accept classname
48/usr/sbin/reject classname</KBD>
49</PRE>
50
51<P>This directive must appear inside a <A
52HREF="#Class"><CODE>Class</CODE></A> or <A
53HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 54section.</P>
ef416fc2 55
56
480ef0fe 57<H2 CLASS="title"><A NAME="AllowUser">AllowUser</A></H2>
ef416fc2 58
480ef0fe 59<H3>Examples</H3>
ef416fc2 60
61<PRE CLASS="command">
480ef0fe 62&lt;Class name&gt;
63 ...
64 AllowUser foo_user
65 AllowUser @bar_group
66&lt;/Class&gt;
ef416fc2 67</PRE>
68
480ef0fe 69<H3>Description</H3>
ef416fc2 70
71<P>The <CODE>AllowUser</CODE> directive adds a username or group
72name to the <VAR>requesting-user-name-allowed</VAR> attribute
73which can be set by the <CODE>lpadmin(8)</CODE> command:</P>
74
75<PRE CLASS="command">
76<KBD>/usr/sbin/lpadmin -p classname -u allow:foo_user,@bar_group</KBD>
77</PRE>
78
79<P>This directive must appear inside a <A
80HREF="#Class"><CODE>Class</CODE></A> or <A
81HREF="#DefaultClass"><CODE>DefaultClass</CODE></A> directive.
82This directive cannot be used with <A
83HREF="#DenyUser"><CODE>DenyUser</CODE></A>.</P>
84
85
480ef0fe 86<H2 CLASS="title"><A NAME="Class">Class</A></H2>
ef416fc2 87
480ef0fe 88<H3>Examples</H3>
ef416fc2 89
90<PRE CLASS="command">
91&lt;Class name&gt;
480ef0fe 92 ...
ef416fc2 93&lt;/Class&gt;
94</PRE>
95
480ef0fe 96<H3>Description</H3>
ef416fc2 97
98<P>The <CODE>Class</CODE> directive begins a class definition.
99Classes are added using the <CODE>lpadmin(8)</CODE> command:
100
101<PRE CLASS="command">
102<KBD>/usr/sbin/lpadmin -p printername -c classname</KBD>
103</PRE>
104
105
480ef0fe 106<H2 CLASS="title"><A NAME="DefaultClass">DefaultClass</A></H2>
ef416fc2 107
480ef0fe 108<H3>Examples</H3>
ef416fc2 109
110<PRE CLASS="command">
111&lt;DefaultClass name&gt;
480ef0fe 112 ...
ef416fc2 113&lt;/Class&gt;
114</PRE>
115
480ef0fe 116<H3>Description</H3>
ef416fc2 117
118<P>The <CODE>DefaultClass</CODE> directive begins a class
119definition as the default server destination. The default server
120destination can be set using the <CODE>lpadmin(8)</CODE>
121command:</P>
122
123<PRE CLASS="command">
124<KBD>/usr/sbin/lpadmin -d classname</KBD>
125</PRE>
126
127<P>Note that the server default destination settings can be
128overridden by the user's default destination settings which are
129normally set using the <CODE>lpoptions(1)</CODE> command.</P>
130
131
480ef0fe 132<H2 CLASS="title"><A NAME="DenyUser">DenyUser</A></H2>
ef416fc2 133
480ef0fe 134<H3>Examples</H3>
ef416fc2 135
136<PRE CLASS="command">
480ef0fe 137&lt;Class name&gt;
138 ...
139 DenyUser foo_user
140 DenyUser @bar_group
141&lt;/Class&gt;
ef416fc2 142</PRE>
143
480ef0fe 144<H3>Description</H3>
ef416fc2 145
146<P>The <CODE>DenyUser</CODE> directive adds a username or group
147name to the <VAR>requesting-user-name-denied</VAR> attribute
148which can be set by the <CODE>lpadmin(8)</CODE> command:</P>
149
150<PRE CLASS="command">
151<KBD>/usr/sbin/lpadmin -p classname -u deny:foo_user,@bar_group</KBD>
152</PRE>
153
154<P>This directive must appear inside a <A
155HREF="#Class"><CODE>Class</CODE></A> or <A
156HREF="#DefaultClass"><CODE>DefaultClass</CODE></A> directive.
157This directive cannot be used with <A
158HREF="#AllowUser"><CODE>AllowUser</CODE></A></P>
159
160
480ef0fe 161<H2 CLASS="title"><A NAME="Info">Info</A></H2>
ef416fc2 162
480ef0fe 163<H3>Examples</H3>
ef416fc2 164
165<PRE CLASS="command">
480ef0fe 166&lt;Class name&gt;
167 ...
168 Info My Class
169&lt;/Class&gt;
ef416fc2 170</PRE>
171
480ef0fe 172<H3>Description</H3>
ef416fc2 173
174<P>The <CODE>Info</CODE> directive defines the string for the
175<VAR>printer-info</VAR> attribute. It is normally set using the
176<CODE>lpadmin(8)</CODE> command:</P>
177
178<PRE CLASS="command">
179<KBD>/usr/sbin/lpadmin -p classname -D "My Class"</KBD>
180</PRE>
181
182<P>This directive must appear inside a <A
183HREF="#Class"><CODE>Class</CODE></A> or <A
184HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 185section.</P>
ef416fc2 186
187
480ef0fe 188<H2 CLASS="title"><A NAME="JobSheets">JobSheets</A></H2>
ef416fc2 189
480ef0fe 190<H3>Examples</H3>
ef416fc2 191
192<PRE CLASS="command">
480ef0fe 193&lt;Class name&gt;
194 ...
195 JobSheets none,standard
196&lt;/Class&gt;
ef416fc2 197</PRE>
198
480ef0fe 199<H3>Description</H3>
ef416fc2 200
201<P>The <CODE>JobSheets</CODE> directive specifies the default
202banner pages to print before and after a print job. In the above
203example, only a <VAR>standard</VAR> banner will print after each
204job. The <CODE>lpadmin(8)</CODE> command is normally used to set
205the default banners:
206
207<PRE CLASS="command">
208<KBD>/usr/sbin/lpadmin -p classname -o job-sheets-default=none,standard</KBD>
209</PRE>
210
211<P>If only one banner file is specified, it will be printed
212before the files in the job. If a second banner file is
213specified, it is printed after the files in the job.</P>
214
215<P>The available banner pages depend on the local system
216configuration; CUPS includes the following standard banner
217files:</P>
218
219<UL>
220
221 <LI><CODE>none</CODE> - Do not produce a banner
222 page.</LI>
223
224 <LI><CODE>classified</CODE> - A banner page with a
225 &quot;classified&quot; label at the top and bottom.</LI>
226
227 <LI><CODE>confidential</CODE> - A banner page with a
228 &quot;confidential&quot; label at the top and bottom.</LI>
229
230 <LI><CODE>secret</CODE> - A banner page with a
231 &quot;secret&quot; label at the top and bottom.</LI>
232
233 <LI><CODE>standard</CODE> - A banner page with no label
234 at the top and bottom.</LI>
235
236 <LI><CODE>topsecret</CODE> - A banner page with a
237 &quot;top secret&quot; label at the top and bottom.</LI>
238
239 <LI><CODE>unclassified</CODE> - A banner page with an
240 &quot;unclassified&quot; label at the top and bottom.</LI>
241
242</UL>
243
244<P>This directive must appear inside a <A
245HREF="#Class"><CODE>Class</CODE></A> or <A
246HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 247section.</P>
ef416fc2 248
249
480ef0fe 250<H2 CLASS="title"><A NAME="KLimit">KLimit</A></H2>
ef416fc2 251
480ef0fe 252<H3>Examples</H3>
ef416fc2 253
254<PRE CLASS="command">
480ef0fe 255&lt;Class name&gt;
256 ...
257 KLimit 1234
258&lt;/Class&gt;
ef416fc2 259</PRE>
260
480ef0fe 261<H3>Description</H3>
ef416fc2 262
263<P>The <CODE>KLimit</CODE> directive defines the value of the
264<VAR>job-k-limit</VAR> attribute. It is normally set using the
265<CODE>lpadmin(8)</CODE> command:</P>
266
267<PRE CLASS="command">
268<KBD>/usr/sbin/lpadmin -p classname -o job-k-limit=1234</KBD>
269</PRE>
270
271<P>This directive must appear inside a <A
272HREF="#Class"><CODE>Class</CODE></A> or <A
273HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 274section.</P>
ef416fc2 275
276
480ef0fe 277<H2 CLASS="title"><A NAME="Location">Location</A></H2>
ef416fc2 278
480ef0fe 279<H3>Examples</H3>
ef416fc2 280
281<PRE CLASS="command">
480ef0fe 282&lt;Class name&gt;
283 ...
284 Location Building 3321
285&lt;/Class&gt;
ef416fc2 286</PRE>
287
480ef0fe 288<H3>Description</H3>
ef416fc2 289
290<P>The <CODE>Location</CODE> directive defines the string for the
291<VAR>printer-location</VAR> attribute. It is normally set using the
292<CODE>lpadmin(8)</CODE> command:</P>
293
294<PRE CLASS="command">
295<KBD>/usr/sbin/lpadmin -p classname -L "Building 3321"</KBD>
296</PRE>
297
298<P>This directive must appear inside a <A
299HREF="#Class"><CODE>Class</CODE></A> or <A
300HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 301section.</P>
ef416fc2 302
303
480ef0fe 304<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="OpPolicy">OpPolicy</A></H2>
ef416fc2 305
480ef0fe 306<H3>Examples</H3>
ef416fc2 307
308<PRE CLASS="command">
480ef0fe 309&lt;Class name&gt;
310 ...
311 OpPolicy default
312&lt;/Class&gt;
ef416fc2 313</PRE>
314
480ef0fe 315<H3>Description</H3>
ef416fc2 316
317<P>The <CODE>OpPolicy</CODE> directive sets the operation policy
318that is used for the printer. The <CODE>lpadmin(8)</CODE> command
319sets the current operation policy:</P>
320
321<PRE CLASS="command">
322<KBD>/usr/sbin/lpadmin -p classname -o printer-op-policy=default</KBD>
323</PRE>
324
325<P>The default policy is named "default". All policies correspond
326to those defined using the <VAR>cupsd.conf</VAR> <A
4744bd90 327HREF="ref-cupsd-conf.html#Policy"><CODE>Policy</CODE></A>
480ef0fe 328section.</P>
ef416fc2 329
330<P>This directive must appear inside a <A
331HREF="#Class"><CODE>Class</CODE></A> or <A
332HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 333section.</P>
ef416fc2 334
335
480ef0fe 336<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="Option">Option</A></H2>
ef416fc2 337
480ef0fe 338<H3>Examples</H3>
ef416fc2 339
340<PRE CLASS="command">
480ef0fe 341&lt;Class name&gt;
342 ...
343 Option name value
344 Option scaling 100
345 Option page-left 72
346&lt;/Class&gt;
ef416fc2 347</PRE>
348
480ef0fe 349<H3>Description</H3>
350
351<P>The <CODE>Option</CODE> directive specifies a default job
352template attribute value. It is mapped to
353<CODE>name-default</CODE> in the printer attributes and applied
354to jobs as <CODE>name</CODE>.</P>
355
356<P>This directive must appear inside a <A
357HREF="#Class"><CODE>Class</CODE></A> or <A
358HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
359section.</P>
360
361
362<H2 CLASS="title"><A NAME="PageLimit">PageLimit</A></H2>
363
364<H3>Examples</H3>
365
366<PRE CLASS="command">
367&lt;Class name&gt;
368 ...
369 PageLimit 1234
370&lt;/Class&gt;
371</PRE>
372
373<H3>Description</H3>
ef416fc2 374
375<P>The <CODE>PageLimit</CODE> directive defines the value of the
376<VAR>job-page-limit</VAR> attribute. It can be set using the
377<CODE>lpadmin(8)</CODE> command:</P>
378
379<PRE CLASS="command">
380<KBD>/usr/sbin/lpadmin -p classname -o job-page-limit=1234</KBD>
381</PRE>
382
383<P>This directive must appear inside a <A
384HREF="#Class"><CODE>Class</CODE></A> or <A
385HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 386section.</P>
ef416fc2 387
388
480ef0fe 389<H2 CLASS="title"><A NAME="Printer">Printer</A></H2>
ef416fc2 390
480ef0fe 391<H3>Examples</H3>
ef416fc2 392
393<PRE CLASS="command">
480ef0fe 394&lt;Class name&gt;
395 ...
396 Printer foo
397 Printer bar
398 Printer bleep
399&lt;/Class&gt;
ef416fc2 400</PRE>
401
480ef0fe 402<H3>Description</H3>
ef416fc2 403
404<P>The <CODE>Printer</CODE> directive adds a printer to a class.
405Printers are added to a class using the <CODE>lpadmin(8)</CODE>
406command:</P>
407
408<PRE CLASS="command">
409<KBD>/usr/sbin/lpadmin -p printername -c classname</KBD>
410</PRE>
411
412<P>This directive must appear inside a <A
413HREF="#Class"><CODE>Class</CODE></A> or <A
414HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 415section.</P>
ef416fc2 416
417
480ef0fe 418<H2 CLASS="title"><A NAME="QuotaPeriod">QuotaPeriod</A></H2>
ef416fc2 419
480ef0fe 420<H3>Examples</H3>
ef416fc2 421
422<PRE CLASS="command">
480ef0fe 423&lt;Class name&gt;
424 ...
425 QuotaPeriod 604800
426&lt;/Class&gt;
ef416fc2 427</PRE>
428
480ef0fe 429<H3>Description</H3>
ef416fc2 430
431<P>The <CODE>QuotaPeriod</CODE> directive defines the value of
432the <VAR>job-quota-period</VAR> attribute. Typical values are
43386400 (1 day), 604800 (1 week), 2592000 (1 month), and 31536000
434(1 year). It is set using the <CODE>lpadmin(8)</CODE>
435command:</P>
436
437<PRE CLASS="command">
438<KBD>/usr/sbin/lpadmin -p classname -o job-quota-period=604800</KBD>
439</PRE>
440
441<P>This directive must appear inside a <A
442HREF="#Class"><CODE>Class</CODE></A> or <A
443HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 444section.</P>
ef416fc2 445
446
480ef0fe 447<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="Shared">Shared</A></H2>
ef416fc2 448
480ef0fe 449<H3>Examples</H3>
ef416fc2 450
451<PRE CLASS="command">
480ef0fe 452&lt;Class name&gt;
453 ...
454 Shared yes
455&lt;/Class&gt;
ef416fc2 456</PRE>
457
480ef0fe 458<H3>Description</H3>
ef416fc2 459
460<P>The <CODE>Shared</CODE> directive defines the initial value of
461the <VAR>printer-is-shared</VAR> attribute. The strings
462<VAR>yes</VAR> and <VAR>no</VAR> correspond to the true and false
463values, respectively. The <CODE>lpadmin(8)</CODE> command sets
464the current state:</P>
465
466<PRE CLASS="command">
467<KBD>/usr/sbin/lpadmin -p classname -o printer-is-shared=true</KBD>
468</PRE>
469
470<P>This directive must appear inside a <A
471HREF="#Class"><CODE>Class</CODE></A> or <A
472HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 473section.</P>
ef416fc2 474
475
480ef0fe 476<H2 CLASS="title"><A NAME="State">State</A></H2>
ef416fc2 477
480ef0fe 478<H3>Examples</H3>
ef416fc2 479
480<PRE CLASS="command">
480ef0fe 481&lt;Class name&gt;
482 ...
483 State idle
484&lt;/Class&gt;
ef416fc2 485</PRE>
486
480ef0fe 487<H3>Description</H3>
ef416fc2 488
489<P>The <CODE>State</CODE> directive defines the initial value of
490the <VAR>printer-state</VAR> attribute. The strings
491<VAR>idle</VAR> and <VAR>stopped</VAR> correspond to the IPP
492enumeration values 3 and 5, respectively. The
493<CODE>cupsenable(8)</CODE> and <CODE>cupsdisable(8)</CODE>
494commands set the current state:</P>
495
496<PRE CLASS="command">
497<KBD>/usr/sbin/cupsenable classname</KBD>
498<KBD>/usr/sbin/cupsdisable classname</KBD>
499</PRE>
500
501<P>This directive must appear inside a <A
502HREF="#Class"><CODE>Class</CODE></A> or <A
503HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 504section.</P>
ef416fc2 505
506
480ef0fe 507<H2 CLASS="title"><A NAME="StateMessage">StateMessage</A></H2>
ef416fc2 508
480ef0fe 509<H3>Examples</H3>
ef416fc2 510
511<PRE CLASS="command">
480ef0fe 512&lt;Class name&gt;
513 ...
514 StateMessage Ready to print.
515&lt;/Class&gt;
ef416fc2 516</PRE>
517
480ef0fe 518<H3>Description</H3>
ef416fc2 519
520<P>The <CODE>StateMessage</CODE> directive defines the initial
521string for the <VAR>printer-state-message</VAR> attribute. The
522following are some example messages:</P>
523
524<PRE CLASS="command">
525StateMessage Connected to host_name...
526StateMessage Connecting to printer_queue on port port_number...
527StateMessage Network host host_name is busy; will retry in 30 seconds...
528StateMessage Class busy; will retry in 10 seconds...
529StateMessage Class is busy; retrying print job...
530StateMessage Print file accepted - job ID id_number.
531StateMessage Ready to print.
532StateMessage Waiting for job to complete
533</PRE>
534
535<P>This directive must appear inside a <A
536HREF="#Class"><CODE>Class</CODE></A> or <A
537HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 538section.</P>
ef416fc2 539
540
480ef0fe 541<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="StateTime">StateTime</A></H2>
ef416fc2 542
480ef0fe 543<H3>Examples</H3>
ef416fc2 544
545<PRE CLASS="command">
480ef0fe 546&lt;Class name&gt;
547 ...
548 StateTime 1133542425
549&lt;/Class&gt;
ef416fc2 550</PRE>
551
480ef0fe 552<H3>Description</H3>
ef416fc2 553
554<P>The <CODE>StateTime</CODE> directive defines the UNIX time
555(seconds since Jan 1, 1970) for the last state change of the
556queue. It is mapped to the <VAR>printer-state-change-time</VAR>
557attribute.</P>
558
559<P>This directive must appear inside a <A
560HREF="#Class"><CODE>Class</CODE></A> or <A
561HREF="#DefaultClass"><CODE>DefaultClass</CODE></A>
480ef0fe 562section.</P>
ef416fc2 563
564
565</BODY>
566</HTML>