2 <!-- SECTION: References -->
4 <TITLE>classes.conf
</TITLE>
8 <P>The CUPS scheduler (cupsd) uses the
9 <VAR>/etc/cups/classes.conf
</VAR> file to store the list of
10 available classes. This file contains only locally defined
11 classes, not remote classes that are created automatically via
12 browsing. Each directive is listed on a line by itself followed
13 by its value. Comments are introduced using the number sign (
"#")
14 character at the beginning of a line.
</P>
16 <P>While the class configuration file consists of plain text and
17 can be modified using your favorite text editor, you should
18 normally use the
<A HREF=
"man-lpadmin.html">lpadmin(
8)
</A>
19 command, web interface, or any of the available GUIs to manage
20 your classes instead. If you do choose to edit this file
21 manually, you will need to restart the scheduler to make them
25 <H2 CLASS=
"title"><A NAME=
"Accepting">Accepting
</A></H2>
38 <P>The
<CODE>Accepting
</CODE> directive defines the initial state
39 of the
<VAR>printer-is-accepting-jobs
</VAR> attribute. This state
40 is also set by the
<CODE>accept(
8)
</CODE> and
41 <CODE>reject(
8)
</CODE> commands:
</P>
44 <KBD>/usr/sbin/accept classname
45 /usr/sbin/reject classname
</KBD>
48 <P>This directive must appear inside a
<A
49 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
50 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
54 <H2 CLASS=
"title"><A NAME=
"AllowUser">AllowUser
</A></H2>
68 <P>The
<CODE>AllowUser
</CODE> directive adds a username or group
69 name to the
<VAR>requesting-user-name-allowed
</VAR> attribute
70 which can be set by the
<CODE>lpadmin(
8)
</CODE> command:
</P>
73 <KBD>/usr/sbin/lpadmin -p classname -u allow:foo_user,@bar_group
</KBD>
76 <P>This directive must appear inside a
<A
77 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
78 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A> directive.
79 This directive cannot be used with
<A
80 HREF=
"#DenyUser"><CODE>DenyUser
</CODE></A>.
</P>
83 <H2 CLASS=
"title"><A NAME=
"Class">Class
</A></H2>
95 <P>The
<CODE>Class
</CODE> directive begins a class definition.
96 Classes are added using the
<CODE>lpadmin(
8)
</CODE> command:
99 <KBD>/usr/sbin/lpadmin -p printername -c classname
</KBD>
103 <H2 CLASS=
"title"><A NAME=
"DefaultClass">DefaultClass
</A></H2>
107 <PRE CLASS=
"command">
108 <DefaultClass name
>
115 <P>The
<CODE>DefaultClass
</CODE> directive begins a class
116 definition as the default server destination. The default server
117 destination can be set using the
<CODE>lpadmin(
8)
</CODE>
120 <PRE CLASS=
"command">
121 <KBD>/usr/sbin/lpadmin -d classname
</KBD>
124 <P>Note that the server default destination settings can be
125 overridden by the user's default destination settings which are
126 normally set using the
<CODE>lpoptions(
1)
</CODE> command.
</P>
129 <H2 CLASS=
"title"><A NAME=
"DenyUser">DenyUser
</A></H2>
133 <PRE CLASS=
"command">
143 <P>The
<CODE>DenyUser
</CODE> directive adds a username or group
144 name to the
<VAR>requesting-user-name-denied
</VAR> attribute
145 which can be set by the
<CODE>lpadmin(
8)
</CODE> command:
</P>
147 <PRE CLASS=
"command">
148 <KBD>/usr/sbin/lpadmin -p classname -u deny:foo_user,@bar_group
</KBD>
151 <P>This directive must appear inside a
<A
152 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
153 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A> directive.
154 This directive cannot be used with
<A
155 HREF=
"#AllowUser"><CODE>AllowUser
</CODE></A></P>
158 <H2 CLASS=
"title"><A NAME=
"Info">Info
</A></H2>
162 <PRE CLASS=
"command">
171 <P>The
<CODE>Info
</CODE> directive defines the string for the
172 <VAR>printer-info
</VAR> attribute. It is normally set using the
173 <CODE>lpadmin(
8)
</CODE> command:
</P>
175 <PRE CLASS=
"command">
176 <KBD>/usr/sbin/lpadmin -p classname -D
"My Class"</KBD>
179 <P>This directive must appear inside a
<A
180 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
181 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
185 <H2 CLASS=
"title"><A NAME=
"JobSheets">JobSheets
</A></H2>
189 <PRE CLASS=
"command">
192 JobSheets none,standard
198 <P>The
<CODE>JobSheets
</CODE> directive specifies the default
199 banner pages to print before and after a print job. In the above
200 example, only a
<VAR>standard
</VAR> banner will print after each
201 job. The
<CODE>lpadmin(
8)
</CODE> command is normally used to set
204 <PRE CLASS=
"command">
205 <KBD>/usr/sbin/lpadmin -p classname -o job-sheets-default=none,standard
</KBD>
208 <P>If only one banner file is specified, it will be printed
209 before the files in the job. If a second banner file is
210 specified, it is printed after the files in the job.
</P>
212 <P>The available banner pages depend on the local system
213 configuration; CUPS includes the following standard banner
218 <LI><CODE>none
</CODE> - Do not produce a banner
221 <LI><CODE>classified
</CODE> - A banner page with a
222 "classified
" label at the top and bottom.
</LI>
224 <LI><CODE>confidential
</CODE> - A banner page with a
225 "confidential
" label at the top and bottom.
</LI>
227 <LI><CODE>secret
</CODE> - A banner page with a
228 "secret
" label at the top and bottom.
</LI>
230 <LI><CODE>standard
</CODE> - A banner page with no label
231 at the top and bottom.
</LI>
233 <LI><CODE>topsecret
</CODE> - A banner page with a
234 "top secret
" label at the top and bottom.
</LI>
236 <LI><CODE>unclassified
</CODE> - A banner page with an
237 "unclassified
" label at the top and bottom.
</LI>
241 <P>This directive must appear inside a
<A
242 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
243 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
247 <H2 CLASS=
"title"><A NAME=
"KLimit">KLimit
</A></H2>
251 <PRE CLASS=
"command">
260 <P>The
<CODE>KLimit
</CODE> directive defines the value of the
261 <VAR>job-k-limit
</VAR> attribute. It is normally set using the
262 <CODE>lpadmin(
8)
</CODE> command:
</P>
264 <PRE CLASS=
"command">
265 <KBD>/usr/sbin/lpadmin -p classname -o job-k-limit=
1234</KBD>
268 <P>This directive must appear inside a
<A
269 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
270 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
274 <H2 CLASS=
"title"><A NAME=
"Location">Location
</A></H2>
278 <PRE CLASS=
"command">
281 Location Building
3321
287 <P>The
<CODE>Location
</CODE> directive defines the string for the
288 <VAR>printer-location
</VAR> attribute. It is normally set using the
289 <CODE>lpadmin(
8)
</CODE> command:
</P>
291 <PRE CLASS=
"command">
292 <KBD>/usr/sbin/lpadmin -p classname -L
"Building 3321"</KBD>
295 <P>This directive must appear inside a
<A
296 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
297 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
301 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2</SPAN><A NAME=
"OpPolicy">OpPolicy
</A></H2>
305 <PRE CLASS=
"command">
314 <P>The
<CODE>OpPolicy
</CODE> directive sets the operation policy
315 that is used for the printer. The
<CODE>lpadmin(
8)
</CODE> command
316 sets the current operation policy:
</P>
318 <PRE CLASS=
"command">
319 <KBD>/usr/sbin/lpadmin -p classname -o printer-op-policy=default
</KBD>
322 <P>The default policy is named
"default". All policies correspond
323 to those defined using the
<VAR>cupsd.conf
</VAR> <A
324 HREF=
"ref-cupsd-conf.html#Policy"><CODE>Policy
</CODE></A>
327 <P>This directive must appear inside a
<A
328 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
329 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
333 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2</SPAN><A NAME=
"Option">Option
</A></H2>
337 <PRE CLASS=
"command">
348 <P>The
<CODE>Option
</CODE> directive specifies a default job
349 template attribute value. It is mapped to
350 <CODE>name-default
</CODE> in the printer attributes and applied
351 to jobs as
<CODE>name
</CODE>.
</P>
353 <P>This directive must appear inside a
<A
354 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
355 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
359 <H2 CLASS=
"title"><A NAME=
"PageLimit">PageLimit
</A></H2>
363 <PRE CLASS=
"command">
372 <P>The
<CODE>PageLimit
</CODE> directive defines the value of the
373 <VAR>job-page-limit
</VAR> attribute. It can be set using the
374 <CODE>lpadmin(
8)
</CODE> command:
</P>
376 <PRE CLASS=
"command">
377 <KBD>/usr/sbin/lpadmin -p classname -o job-page-limit=
1234</KBD>
380 <P>This directive must appear inside a
<A
381 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
382 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
386 <H2 CLASS=
"title"><A NAME=
"Printer">Printer
</A></H2>
390 <PRE CLASS=
"command">
401 <P>The
<CODE>Printer
</CODE> directive adds a printer to a class.
402 Printers are added to a class using the
<CODE>lpadmin(
8)
</CODE>
405 <PRE CLASS=
"command">
406 <KBD>/usr/sbin/lpadmin -p printername -c classname
</KBD>
409 <P>This directive must appear inside a
<A
410 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
411 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
415 <H2 CLASS=
"title"><A NAME=
"QuotaPeriod">QuotaPeriod
</A></H2>
419 <PRE CLASS=
"command">
428 <P>The
<CODE>QuotaPeriod
</CODE> directive defines the value of
429 the
<VAR>job-quota-period
</VAR> attribute. Typical values are
430 86400 (
1 day),
604800 (
1 week),
2592000 (
1 month), and
31536000
431 (
1 year). It is set using the
<CODE>lpadmin(
8)
</CODE>
434 <PRE CLASS=
"command">
435 <KBD>/usr/sbin/lpadmin -p classname -o job-quota-period=
604800</KBD>
438 <P>This directive must appear inside a
<A
439 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
440 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
444 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2</SPAN><A NAME=
"Shared">Shared
</A></H2>
448 <PRE CLASS=
"command">
457 <P>The
<CODE>Shared
</CODE> directive defines the initial value of
458 the
<VAR>printer-is-shared
</VAR> attribute. The strings
459 <VAR>yes
</VAR> and
<VAR>no
</VAR> correspond to the true and false
460 values, respectively. The
<CODE>lpadmin(
8)
</CODE> command sets
461 the current state:
</P>
463 <PRE CLASS=
"command">
464 <KBD>/usr/sbin/lpadmin -p classname -o printer-is-shared=true
</KBD>
467 <P>This directive must appear inside a
<A
468 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
469 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
473 <H2 CLASS=
"title"><A NAME=
"State">State
</A></H2>
477 <PRE CLASS=
"command">
486 <P>The
<CODE>State
</CODE> directive defines the initial value of
487 the
<VAR>printer-state
</VAR> attribute. The strings
488 <VAR>idle
</VAR> and
<VAR>stopped
</VAR> correspond to the IPP
489 enumeration values
3 and
5, respectively. The
490 <CODE>cupsenable(
8)
</CODE> and
<CODE>cupsdisable(
8)
</CODE>
491 commands set the current state:
</P>
493 <PRE CLASS=
"command">
494 <KBD>/usr/sbin/cupsenable classname
</KBD>
495 <KBD>/usr/sbin/cupsdisable classname
</KBD>
498 <P>This directive must appear inside a
<A
499 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
500 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
504 <H2 CLASS=
"title"><A NAME=
"StateMessage">StateMessage
</A></H2>
508 <PRE CLASS=
"command">
511 StateMessage Ready to print.
517 <P>The
<CODE>StateMessage
</CODE> directive defines the initial
518 string for the
<VAR>printer-state-message
</VAR> attribute. The
519 following are some example messages:
</P>
521 <PRE CLASS=
"command">
522 StateMessage Connected to host_name...
523 StateMessage Connecting to printer_queue on port port_number...
524 StateMessage Network host host_name is busy; will retry in
30 seconds...
525 StateMessage Class busy; will retry in
10 seconds...
526 StateMessage Class is busy; retrying print job...
527 StateMessage Print file accepted - job ID id_number.
528 StateMessage Ready to print.
529 StateMessage Waiting for job to complete
532 <P>This directive must appear inside a
<A
533 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
534 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>
538 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2</SPAN><A NAME=
"StateTime">StateTime
</A></H2>
542 <PRE CLASS=
"command">
551 <P>The
<CODE>StateTime
</CODE> directive defines the UNIX time
552 (seconds since Jan
1,
1970) for the last state change of the
553 queue. It is mapped to the
<VAR>printer-state-change-time
</VAR>
556 <P>This directive must appear inside a
<A
557 HREF=
"#Class"><CODE>Class
</CODE></A> or
<A
558 HREF=
"#DefaultClass"><CODE>DefaultClass
</CODE></A>