]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/ref-cupsd-conf.html.in
Sync up with CUPS 1.6svn-r10269 (changes from Zin TOT merged into cups.org TOT)
[thirdparty/cups.git] / doc / help / ref-cupsd-conf.html.in
CommitLineData
ef416fc2 1<HTML>
2<!-- SECTION: References -->
3<HEAD>
4 <TITLE>cupsd.conf</TITLE>
178cb736 5 <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
ef416fc2 6</HEAD>
7<BODY>
8
178cb736 9<H1 CLASS="title">cupsd.conf</H1>
bd7854cb 10
ef416fc2 11<P>The <VAR>/etc/cups/cupsd.conf</VAR> file contains
12configuration <I>directives</I> that control how the server
13functions. Each directive is listed on a line by itself followed
14by its value. Comments are introduced using the number sign ("#")
15character at the beginning of a line.</P>
16
17<P>Since the server configuration file consists of plain text,
18you can use your favorite text editor to make changes to it.
19After making any changes, restart the <CODE>cupsd(8)</CODE>
20process using the startup script for your operating system:</P>
21
22<UL>
23
480ef0fe 24 <LI>AIX, IRIX, Linux, Solaris:
ef416fc2 25 <PRE CLASS="command">
26/etc/init.d/cups restart
27 </PRE></LI>
28
29 <LI>HP-UX:
30 <PRE CLASS="command">
31/sbin/init.d/cups restart
32 </PRE></LI>
33
ef416fc2 34 <LI>MacOS X:
35 <PRE CLASS="command">
568fa3fa
MS
36sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
37sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist
ef416fc2 38 </PRE></LI>
39
ef416fc2 40</UL>
41
42<P>You can also edit this file from the CUPS web interface, which
43automatically handles restarting the scheduler.</P>
44
45
480ef0fe 46<H2 CLASS="title"><A NAME="AccessLog">AccessLog</A></H2>
ef416fc2 47
480ef0fe 48<H3>Examples</H3>
ef416fc2 49
50<PRE CLASS="command">
51AccessLog /var/log/cups/access_log
52AccessLog /var/log/cups/access_log-%s
53AccessLog syslog
54</PRE>
55
480ef0fe 56<H3>Description</H3>
ef416fc2 57
58<P>The <CODE>AccessLog</CODE> directive sets the name of the
59access log file. If the filename is not absolute then it is
60assumed to be relative to the <A
61HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
62access log file is stored in "common log format" and can be used
63by any web access reporting tool to generate a report on CUPS
64server activity.</P>
65
66<P>The server name can be included in the filename by using
67<CODE>%s</CODE> in the name.</P>
68
69<P>The special name "syslog" can be used to send the access
70information to the system log instead of a plain file.</P>
71
72<P>The default access log file is
b94498cf 73<VAR>@CUPS_LOGDIR@/access_log</VAR>.</P>
ef416fc2 74
75
1f0275e3
MS
76<H2 CLASS="title"><A NAME="AccessLogLevel">AccessLogLevel</A></H2>
77
78<H3>Examples</H3>
79
80<PRE CLASS="command">
81AccessLogLevel config
82AccessLogLevel actions
83AccessLogLevel all
84</PRE>
85
86<H3>Description</H3>
87
88<P>The <CODE>AccessLogLevel</CODE> directive controls which requests are logged
89to the access log file. The following levels are defined:</P>
90
91<UL>
92
93 <LI><CODE>config</CODE>; Log when printers and classes are added,
94 deleted, or modified and when configuration files are accessed or
95 updated.</LI>
96
97 <LI><CODE>actions</CODE>; Log when print jobs are submitted,
98 held, released, modified, or canceled, and any of the conditions
99 for <CODE>config</CODE>.</LI>
100
101 <LI><CODE>all</CODE>; Log all requests.</LI>
102
103</UL>
104
105<P>The default access log level is <CODE>@CUPS_ACCESS_LOG_LEVEL@</CODE>.</P>
106
107
480ef0fe 108<H2 CLASS="title"><A NAME="Allow">Allow</A></H2>
ef416fc2 109
480ef0fe 110<H3>Examples</H3>
ef416fc2 111
112<PRE CLASS="command">
480ef0fe 113&lt;Location /path&gt;
114 ...
115 Allow from All
116 Allow from None
eac3a0a0
MS
117 Allow from *.example.com
118 Allow from .example.com
119 Allow from host.example.com
480ef0fe 120 Allow from nnn.*
121 Allow from nnn.nnn.*
122 Allow from nnn.nnn.nnn.*
123 Allow from nnn.nnn.nnn.nnn
124 Allow from nnn.nnn.nnn.nnn/mm
125 Allow from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
5a662dc0
MS
126 Allow from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
127 Allow from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/mmm
480ef0fe 128 Allow from @LOCAL
129 Allow from @IF(name)
130&lt;/Location&gt;
ef416fc2 131</PRE>
132
480ef0fe 133<H3>Description</H3>
ef416fc2 134
480ef0fe 135<P>The <CODE>Allow</CODE> directive specifies a hostname, IP
eac3a0a0
MS
136address, or network that is allowed access to the server.
137<CODE>Allow</CODE> directives are cumulative, so multiple
480ef0fe 138<CODE>Allow</CODE> directives can be used to allow access for
f701418f
MS
139multiple hosts or networks.</P>
140
141<P>Host and domain name matching require that you enable the <A
142HREF="#HostNameLookups"><CODE>HostNameLookups</CODE></A>
143directive.</P>
144
145<P>The <CODE>/mm</CODE> notation specifies a CIDR netmask, as shown in
146<A HREF="#TABLE1">Table 1</A>.</P>
ef416fc2 147
480ef0fe 148<DIV CLASS="table"><TABLE SUMMARY="CIDR Netmasks">
149<CAPTION>Table 1: <A NAME="TABLE1">CIDR Netmasks</A></CAPTION>
ef416fc2 150<TR>
151 <TH WIDTH="10%">mm</TH>
152 <TH WIDTH="20%">netmask</TH>
153 <TH WIDTH="10%">mm</TH>
154 <TH WIDTH="20%">netmask</TH>
155</TR>
156<TR>
157 <TD ALIGN="CENTER">0</TD>
158 <TD ALIGN="CENTER">0.0.0.0</TD>
159 <TD ALIGN="CENTER">8</TD>
160 <TD ALIGN="CENTER">255.0.0.0</TD>
161</TR>
162<TR>
163 <TD ALIGN="CENTER">1</TD>
164 <TD ALIGN="CENTER">128.0.0.0</TD>
165 <TD ALIGN="CENTER">16</TD>
166 <TD ALIGN="CENTER">255.255.0.0</TD>
167</TR>
168<TR>
169 <TD ALIGN="CENTER">2</TD>
170 <TD ALIGN="CENTER">192.0.0.0</TD>
171 <TD ALIGN="CENTER">24</TD>
172 <TD ALIGN="CENTER">255.255.255.0</TD>
173</TR>
174<TR>
175 <TD ALIGN="CENTER">...</TD>
176 <TD ALIGN="CENTER">...</TD>
177 <TD ALIGN="CENTER">32</TD>
178 <TD ALIGN="CENTER">255.255.255.255</TD>
179</TR>
180</TABLE></DIV>
181
182<P>The <CODE>@LOCAL</CODE> name will allow access from all local
183interfaces. The <CODE>@IF(name)</CODE> name will allow access
2abf387c 184from the named interface. In both cases, CUPS only allows access
185from the network that the interface(s) are configured for -
186requests arriving on the interface from a foreign network will
187<em>not</em> be accepted.</P>
ef416fc2 188
189<P>The <CODE>Allow</CODE> directive must appear inside a <A
480ef0fe 190HREF="#Location"><CODE>Location</CODE></A> or <A
191HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 192
193
480ef0fe 194<H2 CLASS="title"><SPAN CLASS="info">Deprecated</SPAN><A NAME="AuthClass">AuthClass</A></H2>
ef416fc2 195
480ef0fe 196<H3>Examples</H3>
ef416fc2 197
198<PRE CLASS="command">
480ef0fe 199&lt;Location /path&gt;
200 ...
201 AuthClass Anonymous
202 AuthClass User
203 AuthClass System
204 AuthClass Group
205&lt;/Location&gt;
ef416fc2 206</PRE>
207
480ef0fe 208<H3>Description</H3>
ef416fc2 209
210<P>The <CODE>AuthClass</CODE> directive defines what level of
211authentication is required:</P>
212
213<UL>
214
215 <LI><CODE>Anonymous</CODE> - No authentication should be
216 performed (default)</LI>
217
218 <LI><CODE>User</CODE> - A valid username and password is
219 required</LI>
220
221 <LI><CODE>System</CODE> - A valid username and password
222 is required, and the username must belong to the "sys"
223 group; this can be changed using the <A
224 HREF="#SystemGroup"><CODE>SystemGroup</CODE></A>
225 directive</LI>
226
227 <LI><CODE>Group</CODE> - A valid username and password is
228 required, and the username must belong to the group named
229 by the <A
230 HREF="#AuthGroupName"><CODE>AuthGroupName</CODE></A>
231 directive</LI>
232
233</UL>
234
235<P>The <CODE>AuthClass</CODE> directive must appear inside a <A
480ef0fe 236HREF="#Location"><CODE>Location</CODE></A> or <A
237HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 238
239<P><B>This directive is deprecated and will be removed from a
240future release of CUPS.</B> Consider using the more flexible <A
241HREF="#Require"><CODE>Require</CODE></A> directive instead.</P>
242
243
480ef0fe 244<H2 CLASS="title"><SPAN CLASS="info">Deprecated</SPAN><A NAME="AuthGroupName">AuthGroupName</A></H2>
ef416fc2 245
480ef0fe 246<H3>Examples</H3>
ef416fc2 247
248<PRE CLASS="command">
480ef0fe 249&lt;Location /path&gt;
250 ...
251 AuthGroupName mygroup
252 AuthGroupName lp
253&lt;/Location&gt;
ef416fc2 254</PRE>
255
480ef0fe 256<H3>Description</H3>
ef416fc2 257
258<P>The <CODE>AuthGroupName</CODE> directive sets the group to use
259for <CODE>Group</CODE> authentication.</P>
260
261<P>The <CODE>AuthGroupName</CODE> directive must appear inside a
480ef0fe 262<A HREF="#Location"><CODE>Location</CODE></A> or <A
263HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 264
265<P><B>This directive is deprecated and will be removed from a
266future release of CUPS.</B> Consider using the more flexible <A
267HREF="#Require"><CODE>Require</CODE></A> directive instead.</P>
268
269
480ef0fe 270<H2 CLASS="title"><A NAME="AuthType">AuthType</A></H2>
ef416fc2 271
480ef0fe 272<H3>Examples</H3>
ef416fc2 273
274<PRE CLASS="command">
480ef0fe 275&lt;Location /path&gt;
276 ...
277 AuthType None
278 AuthType Basic
279 AuthType Digest
280 AuthType BasicDigest
f7deaa1a 281 AuthType Negotiate
480ef0fe 282&lt;/Location&gt;
ef416fc2 283</PRE>
284
480ef0fe 285<H3>Description</H3>
ef416fc2 286
287<P>The <CODE>AuthType</CODE> directive defines the type of
288authentication to perform:</P>
289
290<UL>
291
292 <LI><CODE>None</CODE> - No authentication should be
293 performed (default)</LI>
294
295 <LI><CODE>Basic</CODE> - Basic authentication should be
296 performed using the UNIX password and group files</LI>
297
298 <LI><CODE>Digest</CODE> - Digest authentication should be
299 performed using the <VAR>/etc/cups/passwd.md5</VAR>
300 file</LI>
301
302 <LI><CODE>BasicDigest</CODE> - Basic authentication
303 should be performed using the
304 <VAR>/etc/cups/passwd.md5</VAR> file</LI>
305
f7deaa1a 306 <LI><CODE>Negotiate</CODE> - Kerberos authentication
307 should be performed</LI>
308
ef416fc2 309</UL>
310
f7deaa1a 311<P>When using <CODE>Basic</CODE>, <CODE>Digest</CODE>,
312<CODE>BasicDigest</CODE>, or <CODE>Negotiate</CODE> authentication,
313clients connecting through the <CODE>localhost</CODE> interface can
314also authenticate using certificates.</P>
ef416fc2 315
316<P>The <CODE>AuthType</CODE> directive must appear inside a <A
480ef0fe 317HREF="#Location"><CODE>Location</CODE></A> or <A
318HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 319
320
480ef0fe 321<H2 CLASS="title"><A NAME="AutoPurgeJobs">AutoPurgeJobs</A></H2>
ef416fc2 322
480ef0fe 323<H3>Examples</H3>
ef416fc2 324
325<PRE CLASS="command">
326AutoPurgeJobs Yes
327AutoPurgeJobs No
328</PRE>
329
480ef0fe 330<H3>Description</H3>
ef416fc2 331
332<P>The <CODE>AutoPurgeJobs</CODE> directive specifies whether or
333not to purge completed jobs once they are no longer required for
334quotas. This option has no effect if quotas are not enabled. The
335default setting is <CODE>No</CODE>.</P>
336
337
b0f6947b 338<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="BrowseLocalProtocols">BrowseLocalProtocols</A></H2>
480ef0fe 339
340<H3>Examples</H3>
341
342<PRE CLASS="command">
343BrowseLocalProtocols all
344BrowseLocalProtocols none
a41f09e2 345BrowseLocalProtocols dnssd
480ef0fe 346</PRE>
347
348<H3>Description</H3>
349
350<P>The <CODE>BrowseLocalProtocols</CODE> directive specifies the
351protocols to use when advertising local shared printers on the
352network. Multiple protocols can be specified by separating them
d2354e63 353with spaces. The default is "<CODE>@CUPS_BROWSE_LOCAL_PROTOCOLS@</CODE>".</P>
480ef0fe 354
355
b19ccc9e
MS
356<H2 CLASS="title"><A NAME="BrowseWebIF">BrowseWebIF</A></H2>
357
358<H3>Examples</H3>
359
360<PRE CLASS="command">
361BrowseWebIF On
362BrowseWebIF Off
363</PRE>
364
365<H3>Description</H3>
366
367<P>The <CODE>BrowseWebIF</CODE> directive controls whether the CUPS web
368interface is advertised via DNS-SD. The default setting is
369<CODE>Off</CODE>.</P>
370
371
480ef0fe 372<H2 CLASS="title"><A NAME="Browsing">Browsing</A></H2>
ef416fc2 373
480ef0fe 374<H3>Examples</H3>
ef416fc2 375
376<PRE CLASS="command">
377Browsing On
378Browsing Off
379</PRE>
380
480ef0fe 381<H3>Description</H3>
ef416fc2 382
383<P>The <CODE>Browsing</CODE> directive controls whether or not
a2326b5b 384printer sharing is enabled. The default setting is
b94498cf 385<CODE>@CUPS_BROWSING@</CODE>.</P>
ef416fc2 386
ef416fc2 387
480ef0fe 388<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Classification">Classification</A></H2>
ef416fc2 389
480ef0fe 390<H3>Examples</H3>
ef416fc2 391
392<PRE CLASS="command">
393Classification
394Classification classified
395Classification confidential
396Classification secret
397Classification topsecret
398Classification unclassified
399</PRE>
400
480ef0fe 401<H3>Description</H3>
ef416fc2 402
403<P>The <CODE>Classification</CODE> directive sets the
404classification level on the server. When this option is set, at
405least one of the banner pages is forced to the classification
406level, and the classification is placed on each page of output.
407The default is no classification level.</P>
408
409
480ef0fe 410<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.10</SPAN><A NAME="ClassifyOverride">ClassifyOverride</A></H2>
ef416fc2 411
480ef0fe 412<H3>Examples</H3>
ef416fc2 413
414<PRE CLASS="command">
415ClassifyOverride Yes
416ClassifyOverride No
417</PRE>
418
480ef0fe 419<H3>Description</H3>
ef416fc2 420
421<P>The <CODE>ClassifyOverride</CODE> directive specifies whether
422users can override the default classification level on the
423server. When the server classification is set, users can change
424the classification using the <CODE>job-sheets</CODE> option and
425can choose to only print one security banner before or after the
426job. If the <CODE>job-sheets</CODE> option is set to
427<CODE>none</CODE> then the server default classification is
428used.</P>
429
430<P>The default is to not allow classification overrides.</P>
431
432
480ef0fe 433<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.15</SPAN><A NAME="ConfigFilePerm">ConfigFilePerm</A></H2>
ef416fc2 434
480ef0fe 435<H3>Examples</H3>
ef416fc2 436
437<PRE CLASS="command">
438ConfigFilePerm 0644
480ef0fe 439ConfigFilePerm 0640
ef416fc2 440</PRE>
441
480ef0fe 442<H3>Description</H3>
ef416fc2 443
12f89d24
MS
444<P>The <CODE>ConfigFilePerm</CODE> directive specifies the permissions to use when the scheduler writes configuration and cache files, typically in response to IPP or HTTP requests. The default is @CUPS_CONFIG_FILE_PERM@.</P>
445
446<BLOCKQUOTE><B>Note:</B>
447
448<P>The permissions for the <VAR>printers.conf</VAR> file are always masked to only allow access from the scheduler user (typically root). This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system. There is no way to disable this security feature.</P>
449
450</BLOCKQUOTE>
ef416fc2 451
452
480ef0fe 453<H2 CLASS="title"><A NAME="DataDir">DataDir</A></H2>
ef416fc2 454
480ef0fe 455<H3>Examples</H3>
ef416fc2 456
457<PRE CLASS="command">
458DataDir /usr/share/cups
459</PRE>
460
480ef0fe 461<H3>Description</H3>
ef416fc2 462
463<P>The <CODE>DataDir</CODE> directive sets the directory to use
464for data files.</P>
465
466
b0f6947b 467<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="DefaultAuthType">DefaultAuthType</A></H2>
480ef0fe 468
469<H3>Examples</H3>
470
471<PRE CLASS="command">
472DefaultAuthType Basic
473DefaultAuthType BasicDigest
474DefaultAuthType Digest
f7deaa1a 475DefaultAuthType Negotiate
480ef0fe 476</PRE>
477
478<H3>Description</H3>
479
480<P>The <CODE>DefaultAuthType</CODE> directive specifies the type
481of authentication to use for IPP operations that require a
482username. The default is <CODE>Basic</CODE>.</P>
ef416fc2 483
480ef0fe 484
b0f6947b 485<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="DefaultEncryption">DefaultEncryption</A></H2>
480ef0fe 486
487<H3>Examples</H3>
488
489<PRE CLASS="command">
490DefaultEncryption Never
491DefaultEncryption IfRequested
492DefaultEncryption Required
493</PRE>
494
495<H3>Description</H3>
496
497<P>The <CODE>DefaultEncryption</CODE> directive specifies the
498type of encryption to use when performing authentication. The
499default is <CODE>Required</CODE>.</P>
500
ef416fc2 501
480ef0fe 502<H2 CLASS="title"><A NAME="DefaultLanguage">DefaultLanguage</A></H2>
503
504<H3>Examples</H3>
ef416fc2 505
506<PRE CLASS="command">
507DefaultLanguage de
508DefaultLanguage en
509DefaultLanguage es
510DefaultLanguage fr
511DefaultLanguage it
512</PRE>
513
480ef0fe 514<H3>Description</H3>
ef416fc2 515
516<P>The <CODE>DefaultLanguage</CODE> directive specifies the
517default language to use for client connections. Setting the
518default language also sets the default character set if a
519language localization file exists for it. The default language
520is "en" for English.</P>
521
522
b0f6947b 523<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/Mac OS X 10.6</SPAN><A NAME="DefaultPaperSize">DefaultPaperSize</A></H2>
49d87452
MS
524
525<H3>Examples</H3>
526
527<PRE CLASS="command">
528DefaultPaperSize Letter
529DefaultPaperSize A4
530DefaultPaperSize Auto
531DefaultPaperSize None
532</PRE>
533
534<H3>Description</H3>
535
536<P>The <CODE>DefaultPaperSize</CODE> directive specifies the default paper
537size to use when creating new printers. The default is <CODE>Auto</CODE>
538which uses a paper size appropriate for the system default locale. A value
539of <CODE>None</CODE> tells the scheduler to not set the default paper
540size.</P>
541
542
b0f6947b 543<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="DefaultPolicy">DefaultPolicy</A></H2>
480ef0fe 544
545<H3>Examples</H3>
546
547<PRE CLASS="command">
548DefaultPolicy default
0268488e 549DefaultPolicy authenticated
480ef0fe 550DefaultPolicy foo
551</PRE>
552
553<H3>Description</H3>
554
555<P>The <CODE>DefaultPolicy</CODE> directive specifies the default
556policy to use for IPP operation. The default is
0268488e
MS
557<CODE>default</CODE>. CUPS also includes a policy called
558<CODE>authenticated</CODE> that requires a username and password for printing
559and other job operations.</P>
480ef0fe 560
561
b0f6947b 562<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="DefaultShared">DefaultShared</A></H2>
a74454a7 563
564<H3>Examples</H3>
565
566<PRE CLASS="command">
567DefaultShared yes
568DefaultShared no
569</PRE>
570
571<H3>Description</H3>
572
573<P>The <CODE>DefaultShared</CODE> directive specifies whether
574printers are shared (published) by default. The default is
b94498cf 575<CODE>@CUPS_DEFAULT_SHARED@</CODE>.</P>
a74454a7 576
577
480ef0fe 578<H2 CLASS="title"><A NAME="Deny">Deny</A></H2>
ef416fc2 579
480ef0fe 580<H3>Examples</H3>
ef416fc2 581
582<PRE CLASS="command">
480ef0fe 583&lt;Location /path&gt;
584 ..
585 Deny from All
586 Deny from None
eac3a0a0
MS
587 Deny from *.example.com
588 Deny from .example.com
589 Deny from host.example.com
480ef0fe 590 Deny from nnn.*
591 Deny from nnn.nnn.*
592 Deny from nnn.nnn.nnn.*
593 Deny from nnn.nnn.nnn.nnn
594 Deny from nnn.nnn.nnn.nnn/mm
595 Deny from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
5a662dc0
MS
596 Deny from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
597 Deny from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/mmm
480ef0fe 598 Deny from @LOCAL
599 Deny from @IF(name)
600&lt;/Location&gt;
ef416fc2 601</PRE>
602
480ef0fe 603<H3>Description</H3>
ef416fc2 604
605<P>The <CODE>Deny</CODE> directive specifies a hostname, IP
dd1abb6b 606address, or network that is denied access to the server.
eac3a0a0 607<CODE>Deny</CODE> directives are cumulative, so multiple
0268488e 608<CODE>Deny</CODE> directives can be used to deny access for
f701418f
MS
609multiple hosts or networks.</P>
610
611<P>Host and domain name matching require that you enable the <A
612HREF="#HostNameLookups"><CODE>HostNameLookups</CODE></A>
613directive.</P>
614
615<P>The <CODE>/mm</CODE> notation specifies a CIDR netmask, a shown in
616<A HREF="TABLE1">Table 1</A>.</P>
ef416fc2 617
618<P>The <CODE>@LOCAL</CODE> name will deny access from all local
619interfaces. The <CODE>@IF(name)</CODE> name will deny access from
2abf387c 620the named interface. In both cases, CUPS only denies access from
621the network that the interface(s) are configured for - requests
622arriving on the interface from a foreign network will
623<em>not</em> be denied.</P>
ef416fc2 624
625<P>The <CODE>Deny</CODE> directive must appear inside a <A
480ef0fe 626HREF="#Location"><CODE>Location</CODE></A> or <A
627HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 628
629
4a4b4f99 630<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/Mac OS X 10.6</SPAN><A NAME="DirtyCleanInterval">DirtyCleanInterval</A></H2>
3dfe78b3
MS
631
632<H3>Examples</H3>
633
634<PRE CLASS="command">
49d87452 635DirtyCleanInterval 30
3dfe78b3
MS
636DirtyCleanInterval 0
637</PRE>
638
639<H3>Description</H3>
640
641<P>The <CODE>DirtyCleanInterval</CODE> directive specifies the number of
642seconds to wait before updating configuration and state files for printers,
4a4b4f99
MS
643classes, subscriptions, and jobs. The default is 30 seconds. A value of 0
644causes the update to occur as soon as possible, typically within a few
645milliseconds.</P>
3dfe78b3
MS
646
647
480ef0fe 648<H2 CLASS="title"><A NAME="DocumentRoot">DocumentRoot</A></H2>
ef416fc2 649
480ef0fe 650<H3>Examples</H3>
ef416fc2 651
652<PRE CLASS="command">
653DocumentRoot /usr/share/doc/cups
654DocumentRoot /foo/bar/doc/cups
655</PRE>
656
480ef0fe 657<H3>Description</H3>
ef416fc2 658
659<P>The <CODE>DocumentRoot</CODE> directive specifies the location
660of web content for the HTTP server in CUPS. If an absolute path
661is not specified then it is assumed to be relative to the <A
662HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
b94498cf 663default directory is <VAR>@CUPS_DOCROOT@</VAR>.</P>
ef416fc2 664
665<P>Documents are first looked up in a sub-directory for the
666primary language requested by the client (e.g.
b94498cf 667<VAR>@CUPS_DOCROOT@/fr/...</VAR>) and then directly under
ef416fc2 668the <CODE>DocumentRoot</CODE> directory (e.g.
b94498cf 669<VAR>@CUPS_DOCROOT@/...</VAR>), so it is possible to
ef416fc2 670localize the web content by providing subdirectories for each
671language needed.</P>
672
673
480ef0fe 674<H2 CLASS="title"><A NAME="Encryption">Encryption</A></H2>
ef416fc2 675
480ef0fe 676<H3>Examples</H3>
ef416fc2 677
678<PRE CLASS="command">
480ef0fe 679&lt;Location /path&gt;
680 ...
681 Encryption Never
682 Encryption IfRequested
683 Encryption Required
684&lt;/Location&gt;
ef416fc2 685</PRE>
686
480ef0fe 687<H3>Description</H3>
ef416fc2 688
689<P>The <CODE>Encryption</CODE> directive must appear instead a <A
480ef0fe 690HREF="#Location"><CODE>Location</CODE></A> or <A
691HREF="#Limit"><CODE>Limit</CODE></A> section and specifies the
692encryption settings for that location. The default setting is
ef416fc2 693<CODE>IfRequested</CODE> for all locations.</P>
694
695
480ef0fe 696<H2 CLASS="title"><A NAME="ErrorLog">ErrorLog</A></H2>
ef416fc2 697
480ef0fe 698<H3>Examples</H3>
ef416fc2 699
700<PRE CLASS="command">
701ErrorLog /var/log/cups/error_log
702ErrorLog /var/log/cups/error_log-%s
703ErrorLog syslog
704</PRE>
705
480ef0fe 706<H3>Description</H3>
ef416fc2 707
708<P>The <CODE>ErrorLog</CODE> directive sets the name of the error
709log file. If the filename is not absolute then it is assumed to
710be relative to the <A
711HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
b94498cf 712default error log file is <VAR>@CUPS_LOGDIR@/error_log</VAR>.</P>
ef416fc2 713
714<P>The server name can be included in the filename by using
715<CODE>%s</CODE> in the name.</P>
716
717<P>The special name "syslog" can be used to send the error
718information to the system log instead of a plain file.</P>
719
720
b0f6947b 721<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.3/Mac OS X 10.5</SPAN><A NAME="ErrorPolicy">ErrorPolicy</A></H2>
323c5de1 722
723<H3>Examples</H3>
724
725<PRE CLASS="command">
726ErrorPolicy abort-job
727ErrorPolicy retry-job
728ErrorPolicy stop-printer
729</PRE>
730
731<H3>Description</H3>
732
733<P>The <CODE>ErrorPolicy</CODE> directive defines the default policy that
734is used when a backend is unable to send a print job to the
735printer.</P>
736
737<P>The following values are supported:</P>
738
739<UL>
740
741 <LI><CODE>abort-job</CODE> - Abort the job and proceed
742 with the next job in the queue</LI>
743
744 <LI><CODE>retry-job</CODE> - Retry the job after waiting
745 for N seconds; the <VAR>cupsd.conf</VAR> <A
746 HREF="#JobRetryInterval"><CODE>JobRetryInterval</CODE></A>
747 directive controls the value of N</LI>
748
238c3832
MS
749 <LI><CODE>retry-this-job</CODE> - Retry the current job immediately
750 and indefinitely.</LI>
751
323c5de1 752 <LI><CODE>stop-printer</CODE> - Stop the printer and keep
753 the job for future printing; this is the default
754 value</LI>
755
756</UL>
757
758
49d87452 759
b0f6947b 760<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/Mac OS X 10.6</SPAN><A NAME="FatalErrors">FatalErrors</A></H2>
49d87452
MS
761
762<H3>Examples</H3>
763
764<PRE CLASS="command">
765FatalErrors none
766FatalErrors all
767FatalErrors browse
768FatalErrors config
769FatalErrors listen
770FatalErrors log
771FatalErrors permissions
772FatalErrors all -permissions
773FatalErrors config permissions log
774</PRE>
775
776<H3>Description</H3>
777
778<P>The <CODE>FatalErrors</CODE> directive determines whether certain kinds of
779errors are fatal. The following kinds of errors are currently recognized:</P>
780
781<UL>
782
783 <LI><CODE>none</CODE> - No errors are fatal</LI>
784
785 <LI><CODE>all</CODE> - All of the errors below are fatal</LI>
786
787 <LI><CODE>browse</CODE> - Browsing initialization errors are fatal,
788 for example failed binding to the CUPS browse port or failed connections
789 to LDAP servers</LI>
790
791 <LI><CODE>config</CODE> - Configuration file syntax errors are
792 fatal</LI>
793
794 <LI><CODE>listen</CODE> - Listen or Port errors are fatal, except for
795 IPv6 failures on the loopback or "any" addresses</LI>
796
797 <LI><CODE>log</CODE> - Log file creation or write errors are fatal</LI>
798
799 <LI><CODE>permissions</CODE> - Bad startup file permissions are
800 fatal, for example shared SSL certificate and key files with world-
801 read permissions</LI>
802
803</UL>
804
805<P>Multiple errors can be listed, and the form "-kind" can be used with
806<CODE>all</CODE> to remove specific kinds of errors. The default setting is
807<CODE>@CUPS_FATAL_ERRORS@</CODE>.</P>
808
809
480ef0fe 810<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.18</SPAN><A NAME="FileDevice">FileDevice</A></H2>
ef416fc2 811
480ef0fe 812<H3>Examples</H3>
ef416fc2 813
814<PRE CLASS="command">
815FileDevice Yes
816FileDevice No
817</PRE>
818
480ef0fe 819<H3>Description</H3>
ef416fc2 820
821<P>The <CODE>FileDevice</CODE> directive determines whether the
822scheduler allows new printers to be added using device URIs of
823the form <CODE>file:/filename</CODE>. File devices are most often
824used to test new printer drivers and do not support raw file
825printing.</P>
826
827<P>The default setting is <CODE>No</CODE>.</P>
828
829<BLOCKQUOTE><B>Note:</B>
830
831<P>File devices are managed by the scheduler. Since the
832scheduler normally runs as the root user, file devices
833can be used to overwrite system files and potentially
834gain unauthorized access to the system. If you must
835create printers using file devices, we recommend that
836you set the <CODE>FileDevice</CODE> directive to
837<CODE>Yes</CODE> for only as long as you need to add the
838printers to the system, and then reset the directive to
839<CODE>No</CODE>.</P>
840
841</BLOCKQUOTE>
842
843
480ef0fe 844<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="FilterLimit">FilterLimit</A></H2>
ef416fc2 845
480ef0fe 846<H3>Examples</H3>
ef416fc2 847
848<PRE CLASS="command">
849FilterLimit 0
850FilterLimit 200
851FilterLimit 1000
852</PRE>
853
480ef0fe 854<H3>Description</H3>
ef416fc2 855
856<P>The <CODE>FilterLimit</CODE> directive sets the maximum cost
857of all running job filters. It can be used to limit the number of
858filter programs that are run on a server to minimize disk,
859memory, and CPU resource problems. A limit of 0 disables filter
860limiting.</P>
861
862<P>An average print to a non-PostScript printer needs a filter
863limit of about 200. A PostScript printer needs about half that
864(100). Setting the limit below these thresholds will effectively
865limit the scheduler to printing a single job at any time.</P>
866
867<P>The default limit is 0.</P>
868
869
480ef0fe 870<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.16</SPAN><A NAME="FilterNice">FilterNice</A></H2>
871
872<H3>Examples</H3>
873
874<PRE CLASS="command">
875FilterNice 0
876FilterNice 10
877FilterNice 19
878</PRE>
879
880<H3>Description</H3>
881
882<P>The <CODE>FilterNice</CODE> directive sets the <B>nice(1)</B>
883value to assign to filter processes. The nice value ranges from
8840, the highest priority, to 19, the lowest priority. The default
885is 0.</P>
886
887
888<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="FontPath">FontPath</A></H2>
ef416fc2 889
480ef0fe 890<H3>Examples</H3>
ef416fc2 891
892<PRE CLASS="command">
893FontPath /foo/bar/fonts
894FontPath /usr/share/cups/fonts:/foo/bar/fonts
895</PRE>
896
480ef0fe 897<H3>Description</H3>
ef416fc2 898
899<P>The <CODE>FontPath</CODE> directive specifies the font path to
900use when searching for fonts. The default font path is
901<CODE>/usr/share/cups/fonts</CODE>.</P>
902
903
480ef0fe 904<H2 CLASS="title"><A NAME="Group">Group</A></H2>
ef416fc2 905
480ef0fe 906<H3>Examples</H3>
ef416fc2 907
908<PRE CLASS="command">
480ef0fe 909Group lp
ef416fc2 910Group nobody
911</PRE>
912
480ef0fe 913<H3>Description</H3>
ef416fc2 914
915<P>The <CODE>Group</CODE> directive specifies the UNIX group that
916filter and CGI programs run as. The default group is
480ef0fe 917system-specific but is usually <CODE>lp</CODE> or
ef416fc2 918<CODE>nobody</CODE>.</P>
919
920
dcb445bc
MS
921<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.6</SPAN><A NAME="GSSServiceName">GSSServiceName</A></H2>
922
923<H3>Examples</H3>
924
925<PRE CLASS="command">
926GSSServiceName http
927GSSServiceName ipp
928</PRE>
929
930<H3>Description</H3>
931
932<P>The <CODE>GSSServiceName</CODE> directive sets the Kerberos service name to use. The default is <CODE>@CUPS_DEFAULT_GSSSERVICE_NAME@</CODE> for compatibility with Microsoft Windows.</P>
933
934
480ef0fe 935<H2 CLASS="title"><A NAME="HostNameLookups">HostNameLookups</A></H2>
ef416fc2 936
480ef0fe 937<H3>Examples</H3>
ef416fc2 938
939<PRE CLASS="command">
940HostNameLookups On
941HostNameLookups Off
942HostNameLookups Double
943</PRE>
944
480ef0fe 945<H3>Description</H3>
ef416fc2 946
947<P>The <CODE>HostNameLookups</CODE> directive controls whether or
948not CUPS looks up the hostname for connecting clients. The
949<CODE>Double</CODE> setting causes CUPS to verify that the
950hostname resolved from the address matches one of the addresses
951returned for that hostname. <CODE>Double</CODE> lookups also
952prevent clients with unregistered addresses from connecting to
953your server.</P>
954
955<P>The default is <CODE>Off</CODE> to avoid the potential server
956performance problems with hostname lookups. Set this option to
957<CODE>On</CODE> or <CODE>Double</CODE> only if absolutely
958required.</P>
959
960
480ef0fe 961<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.9</SPAN><A NAME="Include">Include</A></H2>
ef416fc2 962
480ef0fe 963<H3>Examples</H3>
ef416fc2 964
965<PRE CLASS="command">
966Include filename
967Include /foo/bar/filename
968</PRE>
969
480ef0fe 970<H3>Description</H3>
ef416fc2 971
972<P>The <CODE>Include</CODE> directive includes the named file in
973the <CODE>cupsd.conf</CODE> file. If no leading path is provided,
974the file is assumed to be relative to the <A
975HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory.</P>
976
977
10d09e33
MS
978<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="JobPrivateAccess">JobPrivateAccess</A></H2>
979
980<H3>Examples</H3>
981
982<PRE CLASS="command">
983JobPrivateAccess all
984JobPrivateAccess default
985JobPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM}+
986</PRE>
987
988<H3>Description</H3>
989
990<P>The <CODE>JobPrivateAccess</CODE> directive specifies the access list for a
991job's private values. The "default" access list is "@OWNER @SYSTEM". "@ACL" maps
992to the printer's requesting-user-name-allowed or requesting-user-name-denied
993values.</P>
994
995<P>The <CODE>JobPrivateAccess</CODE> directive must appear inside a <A
996HREF="#Policy"><CODE>Policy</CODE></A> section.</P>
997
998
999<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="JobPrivateValues">JobPrivateValues</A></H2>
1000
1001<H3>Examples</H3>
1002
1003<PRE CLASS="command">
1004JobPrivateValues all
1005JobPrivateValues default
1006JobPrivateValues none
1007JobPrivateValues attribute-name-1 [ ... attribute-name-N ]
1008</PRE>
1009
1010<H3>Description</H3>
1011
1012<P>The <CODE>JobPrivateValues</CODE> directive specifies the list of job values
1013to make private. The "default" values are "job-name",
1014"job-originating-host-name", and "job-originating-user-name".</P>
1015
1016<P>The <CODE>JobPrivateValues</CODE> directive must appear inside a <A
1017HREF="#Policy"><CODE>Policy</CODE></A> section.</P>
1018
1019
b0f6947b 1020<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="JobRetryInterval">JobRetryInterval</A></H2>
480ef0fe 1021
1022<H3>Examples</H3>
1023
1024<PRE CLASS="command">
1025JobRetryInterval 30
1026JobRetryInterval 120
1027</PRE>
1028
1029<H3>Description</H3>
1030
1031<P>The <CODE>JobRetryInterval</CODE> directive specifies the
1032number of seconds to wait before retrying a job. This is
1033typically used for fax queues but can also be used with normal
1034print queues whose error policy is <CODE>retry-job</CODE>. The
1035default is 30 seconds.</P>
ef416fc2 1036
480ef0fe 1037
b0f6947b 1038<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/Mac OS X 10.6</SPAN><A NAME="JobKillDelay">JobKillDelay</A></H2>
238c3832
MS
1039
1040<H3>Examples</H3>
1041
1042<PRE CLASS="command">
1043JobKillDelay 30
1044JobKillDelay 120
1045</PRE>
1046
1047<H3>Description</H3>
1048
1049<P>The <CODE>JobKillDelay</CODE> directive specifies the number of seconds to
1050wait before killing the filters and backend associated with a canceled or held
1051job. The default is 30 seconds.</P>
1052
1053
b0f6947b 1054<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="JobRetryLimit">JobRetryLimit</A></H2>
480ef0fe 1055
1056<H3>Examples</H3>
1057
1058<PRE CLASS="command">
1059JobRetryLimit 5
1060JobRetryLimit 50
1061</PRE>
1062
1063<H3>Description</H3>
1064
1065<P>The <CODE>JobRetryLimit</CODE> directive specifies the maximum
1066number of times the scheduler will try to print a job. This is
1067typically used for fax queues but can also be used with normal
1068print queues whose error policy is <CODE>retry-job</CODE>. The
1069default is 5 times.</P>
1070
1071
1072<H2 CLASS="title"><A NAME="KeepAlive">KeepAlive</A></H2>
1073
1074<H3>Examples</H3>
ef416fc2 1075
1076<PRE CLASS="command">
1077KeepAlive On
1078KeepAlive Off
1079</PRE>
1080
480ef0fe 1081<H3>Description</H3>
ef416fc2 1082
1083<P>The <CODE>KeepAlive</CODE> directive controls whether or not
1084to support persistent HTTP connections. The default is
1085<CODE>On</CODE>.</P>
1086
1087<P>HTTP/1.1 clients automatically support persistent connections,
1088while HTTP/1.0 clients must specifically request them using the
1089<CODE>Keep-Alive</CODE> attribute in the <CODE>Connection:</CODE>
1090field of each request.</P>
1091
1092
480ef0fe 1093<H2 CLASS="title"><A NAME="KeepAliveTimeout">KeepAliveTimeout</A></H2>
ef416fc2 1094
480ef0fe 1095<H3>Examples</H3>
ef416fc2 1096
1097<PRE CLASS="command">
1098KeepAliveTimeout 60
1099KeepAliveTimeout 30
1100</PRE>
1101
480ef0fe 1102<H3>Description</H3>
ef416fc2 1103
1104<P>The <CODE>KeepAliveTimeout</CODE> directive controls how long
1105a persistent HTTP connection will remain open after the last
49d87452 1106request. The default is 30 seconds.</P>
ef416fc2 1107
1108
480ef0fe 1109<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Limit">Limit (Location)</A></H2>
ef416fc2 1110
480ef0fe 1111<H3>Examples</H3>
ef416fc2 1112
1113<PRE CLASS="command">
480ef0fe 1114&lt;Location /path&gt;
1115 &lt;Limit GET POST&gt;
1116 ...
1117 &lt;/Limit&gt;
ef416fc2 1118
480ef0fe 1119 &lt;Limit ALL&gt;
1120 ...
1121 &lt;/Limit&gt;
1122&lt;/Location&gt;
ef416fc2 1123</PRE>
1124
480ef0fe 1125<H3>Description</H3>
ef416fc2 1126
1127<P>The <CODE>Limit</CODE> directive groups access control
1128directives for specific types of HTTP requests and must appear
1129inside a <A HREF="#Location"><CODE>Location</CODE></A> section.
1130Access can be limited for individual request types
1131(<CODE>DELETE</CODE>, <CODE>GET</CODE>, <CODE>HEAD</CODE>,
1132<CODE>OPTIONS</CODE>, <CODE>POST</CODE>, <CODE>PUT</CODE>, and
1133<CODE>TRACE</CODE>) or for all request types (<CODE>ALL</CODE>).
1134The request type names are case-sensitive for compatibility with
1135Apache.</P>
1136
1137
b0f6947b 1138<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="LimitIPP">Limit (Policy)</A></H2>
ef416fc2 1139
480ef0fe 1140<H3>Examples</H3>
ef416fc2 1141
1142<PRE CLASS="command">
480ef0fe 1143&lt;Policy name&gt;
1144 &lt;Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer&gt;
1145 ...
1146 &lt;/Limit&gt;
1147
1148 &lt;Limit All&gt;
1149 ...
1150 &lt;/Limit&gt;
1151&lt;/Policy&gt;
1152</PRE>
1153
1154<H3>Description</H3>
1155
1156<P>When included in <A HREF="#Policy"><CODE>Policy</CODE></A>
1157sections, the <CODE>Limit</CODE> directive groups access control
1158directives for specific IPP operations. Multiple operations can
1159be listed, separated by spaces. Table 2 lists the supported
1160operations.</P>
1161
1162<DIV CLASS="table"><TABLE SUMMARY="Supported IPP Operations">
1163<CAPTION>Table 2: <A NAME="TABLE2">Supported IPP Operations</A></CAPTION>
1164<THEAD>
1165<TR>
1166 <TH>Operation Name</TH>
1167 <TH>Description</TH>
1168</TR>
1169</THEAD>
1170<TBODY>
1171<TR>
1172 <TD>All</TD>
1173 <TD>All operations - used as the default limit for
1174 operations that are not listed</TD>
1175</TR>
1176<TR>
1177 <TD>Cancel-Job</TD>
1178 <TD>Cancel a job</TD>
1179</TR>
1180<TR>
1181 <TD>Cancel-Subscription</TD>
1182 <TD>Cancel a subscription</TD>
1183</TR>
1184<TR>
1185 <TD>Create-Job</TD>
1186 <TD>Create a new, empty job</TD>
1187</TR>
1188<TR>
1189 <TD>Create-Job-Subscription</TD>
1190 <TD>Creates a notification subscription on a job</TD>
1191</TR>
1192<TR>
1193 <TD>Create-Printer-Subscription</TD>
1194 <TD>Creates a notification subscription on a printer</TD>
1195</TR>
1196<TR>
1197 <TD>CUPS-Accept-Jobs</TD>
1198 <TD>Sets the printer-is-accepting-jobs value for a printer to true</TD>
1199</TR>
1200<TR>
1201 <TD>CUPS-Add-Modify-Class</TD>
1202 <TD>Adds or modifies a class</TD>
1203</TR>
1204<TR>
1205 <TD>CUPS-Add-Modify-Printer</TD>
1206 <TD>Adds or modifies a printer</TD>
1207</TR>
1208<TR>
1209 <TD>CUPS-Authenticate-Job</TD>
1210 <TD>Authenticates a job for printing</TD>
1211</TR>
1212<TR>
1213 <TD>CUPS-Delete-Class</TD>
1214 <TD>Deletes a class</TD>
1215</TR>
1216<TR>
1217 <TD>CUPS-Delete-Printer</TD>
1218 <TD>Deletes a printer</TD>
1219</TR>
1220<TR>
1221 <TD>CUPS-Get-Classes</TD>
1222 <TD>Gets a list of classes</TD>
1223</TR>
1224<TR>
1225 <TD>CUPS-Get-Default</TD>
1226 <TD>Gets the (network/server) default printer or class</TD>
1227</TR>
1228<TR>
1229 <TD>CUPS-Get-Devices</TD>
1230 <TD>Gets a list of available devices</TD>
1231</TR>
1232<TR>
1233 <TD>CUPS-Get-PPDs</TD>
1234 <TD>Gets a list of available manufacturers or drivers</TD>
1235</TR>
1236<TR>
1237 <TD>CUPS-Get-Printers</TD>
1238 <TD>Gets a list of printers and/or classes</TD>
1239</TR>
1240<TR>
1241 <TD>CUPS-Move-Job</TD>
1242 <TD>Moves a job to a new destination</TD>
1243</TR>
1244<TR>
1245 <TD>CUPS-Reject-Jobs</TD>
1246 <TD>Sets the printer-is-accepting-jobs value for a printer to false</TD>
1247</TR>
1248<TR>
1249 <TD>CUPS-Set-Default</TD>
1250 <TD>Sets the network/server default printer or class</TD>
1251</TR>
1252<TR>
1253 <TD>Disable-Printer</TD>
1254 <TD>Sets the printer-state value for a printer to stopped</TD>
1255</TR>
1256<TR>
1257 <TD>Enable-Printer</TD>
1258 <TD>Sets the printer-state value for a printer to idle/processing</TD>
1259</TR>
1260<TR>
1261 <TD>Get-Job-Attributes</TD>
1262 <TD>Gets information about a job</TD>
1263</TR>
1264<TR>
1265 <TD>Get-Jobs</TD>
1266 <TD>Gets a list of jobs</TD>
1267</TR>
1268<TR>
1269 <TD>Get-Notifications</TD>
1270 <TD>Gets a list of events</TD>
1271</TR>
1272<TR>
1273 <TD>Get-Printer-Attributes</TD>
eac3a0a0 1274 <TD>Gets information about a printer or class</TD>
480ef0fe 1275</TR>
1276<TR>
1277 <TD>Get-Subscription-Attributes</TD>
eac3a0a0 1278 <TD>Gets information about a notification subscription</TD>
480ef0fe 1279</TR>
1280<TR>
1281 <TD>Get-Subscriptions</TD>
1282 <TD>Gets a list of notification subscriptions</TD>
1283</TR>
1284<TR>
1285 <TD>Hold-Job</TD>
1286 <TD>Holds a job for printing</TD>
1287</TR>
1288<TR>
1289 <TD>Pause-Printer</TD>
1290 <TD>Sets the printer-state value for a printer to stopped</TD>
1291</TR>
1292<TR>
1293 <TD>Print-Job</TD>
1294 <TD>Creates a job with a single file for printing</TD>
1295</TR>
1296<TR>
1297 <TD>Purge-Jobs</TD>
1298 <TD>Removes all jobs from a printer</TD>
1299</TR>
1300<TR>
1301 <TD>Release-Job</TD>
1302 <TD>Releases a previously held job for printing</TD>
1303</TR>
1304<TR>
1305 <TD>Renew-Subscription</TD>
1306 <TD>Renews a notification subscription</TD>
1307</TR>
1308<TR>
1309 <TD>Restart-Job</TD>
1310 <TD>Reprints a job</TD>
1311</TR>
1312<TR>
1313 <TD>Resume-Printer</TD>
eac3a0a0 1314 <TD>Sets the printer-state value for a printer to idle/processing</TD>
480ef0fe 1315</TR>
1316<TR>
1317 <TD>Send-Document</TD>
1318 <TD>Adds a file to an job created with Create-Job</TD>
1319</TR>
1320<TR>
1321 <TD>Set-Job-Attributes</TD>
1322 <TD>Changes job options</TD>
1323</TR>
1324<TR>
1325 <TD>Validate-Job</TD>
1326 <TD>Validates job options prior to printing</TD>
1327</TR>
1328</TBODY>
1329</TABLE></DIV>
1330
1331
1332<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="LimitExcept">LimitExcept</A></H2>
1333
1334<H3>Examples</H3>
1335
1336<PRE CLASS="command">
1337&lt;Location /path&gt;
1338 &lt;LimitExcept GET POST&gt;
1339 ...
1340 &lt;/LimitExcept&gt;
1341&lt;/Location&gt;
ef416fc2 1342</PRE>
1343
480ef0fe 1344<H3>Description</H3>
ef416fc2 1345
1346<P>The <CODE>LimitExcept</CODE> directive groups access control
1347directives for specific types of HTTP requests and must appear
1348inside a <A HREF="#Location"><CODE>Location</CODE></A> section.
1349Unlike the <A HREF="#Limit"><CODE>Limit</CODE></A> directive,
1350<CODE>LimitExcept</CODE> restricts access for all requests
1351<I>except</I> those listed on the <CODE>LimitExcept</CODE>
1352line.</P>
1353
1354
480ef0fe 1355<H2 CLASS="title"><A NAME="LimitRequestBody">LimitRequestBody</A></H2>
ef416fc2 1356
480ef0fe 1357<H3>Examples</H3>
ef416fc2 1358
1359<PRE CLASS="command">
1360LimitRequestBody 10485760
1361LimitRequestBody 10m
1362LimitRequestBody 0
1363</PRE>
1364
480ef0fe 1365<H3>Description</H3>
ef416fc2 1366
1367<P>The <CODE>LimitRequestBody</CODE> directive controls the
1368maximum size of print files, IPP requests, and HTML form data in
1369HTTP POST requests. The default limit is 0 which disables the
1370limit check.</P>
1371
1372
480ef0fe 1373<H2 CLASS="title"><A NAME="Listen">Listen</A></H2>
ef416fc2 1374
480ef0fe 1375<H3>Examples</H3>
ef416fc2 1376
1377<PRE CLASS="command">
1378Listen 127.0.0.1:631
1379Listen 192.0.2.1:631
1380Listen [::1]:631
1381Listen *:631
1382</PRE>
1383
480ef0fe 1384<H3>Description</H3>
ef416fc2 1385
1386<P>The <CODE>Listen</CODE> directive specifies a network address
1387and port to listen for connections. Multiple <CODE>Listen</CODE>
1388directives can be provided to listen on multiple addresses.</P>
1389
1390<P>The <CODE>Listen</CODE> directive is similar to the <A
1391HREF="#Port"><CODE>Port</CODE></A> directive but allows you to
1392restrict access to specific interfaces or networks.</P>
1393
1394
480ef0fe 1395<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="ListenBackLog">ListenBackLog</A></H2>
1396
1397<H3>Examples</H3>
1398
1399<PRE CLASS="command">
1400ListenBackLog 5
1401ListenBackLog 10
1402</PRE>
1403
1404<H3>Description</H3>
1405
1406<P>The <CODE>ListenBackLog</CODE> directive sets the maximum
1407number of pending connections the scheduler will allow. This
1408normally only affects very busy servers that have reached the <A
1409HREF="#MaxClients"><CODE>MaxClients</CODE></A> limit, but can
1410also be triggered by large numbers of simultaneous connections.
1411When the limit is reached, the operating system will refuse
1412additional connections until the scheduler can accept the pending
1413ones. The default is the OS-defined default limit, typically
1414either 5 for older operating systems or 128 for newer operating
1415systems.</P>
1416
1417
1418<H2 CLASS="title"><A NAME="Location">Location</A></H2>
ef416fc2 1419
480ef0fe 1420<H3>Examples</H3>
ef416fc2 1421
1422<PRE CLASS="command">
1423&lt;Location /&gt;
1424...
1425&lt;/Location&gt;
1426
1427&lt;Location /admin&gt;
1428...
1429&lt;/Location&gt;
1430
1431&lt;Location /admin/conf&gt;
1432...
1433&lt;/Location&gt;
1434
1435&lt;Location /admin/log&gt;
1436...
1437&lt;/Location&gt;
1438
1439&lt;Location /classes&gt;
1440...
1441&lt;/Location&gt;
1442
1443&lt;Location /classes/name&gt;
1444...
1445&lt;/Location&gt;
1446
1447&lt;Location /jobs&gt;
1448...
1449&lt;/Location&gt;
1450
1451&lt;Location /printers&gt;
1452...
1453&lt;/Location&gt;
1454
1455&lt;Location /printers/name&gt;
1456...
1457&lt;/Location&gt;
1458
1459</PRE>
1460
480ef0fe 1461<H3>Description</H3>
ef416fc2 1462
1463<P>The <CODE>Location</CODE> directive specifies access control
1464and authentication options for the specified HTTP resource or
1465path. The <A HREF="#Allow"><CODE>Allow</CODE></A>, <A
1466HREF="#AuthType"><CODE>AuthType</CODE></A>, <A
1467HREF="#Deny"><CODE>Deny</CODE></A>, <A
1468HREF="#Encryption"><CODE>Encryption</CODE></A>, <A
1469HREF="#Limit"><CODE>Limit</CODE></A>, <A
1470HREF="#LimitExcept"><CODE>LimitExcept</CODE></A>, <A
1471HREF="#Order"><CODE>Order</CODE></A>, <A
1472HREF="#Require"><CODE>Require</CODE></A>, and <A
1473HREF="#Satisfy"><CODE>Satisfy</CODE></A> directives may all
1474appear inside a location.</P>
1475
1476<P>Note that more specific resources override the less specific
1477ones. So the directives inside the <CODE>/printers/name</CODE>
1478location will override ones from <CODE>/printers</CODE>.
1479Directives inside <CODE>/printers</CODE> will override ones from
1480<CODE>/</CODE>. None of the directives are inherited.</P>
1481
9aff70cc 1482<DIV CLASS="table"><TABLE SUMMARY="Common Locations on the Server">
480ef0fe 1483<CAPTION>Table 3: <A NAME="TABLE3">Common Locations on the Server</A></CAPTION>
1484<THEAD>
ef416fc2 1485<TR><TH>Location</TH><TH>Description</TH></TR>
480ef0fe 1486</THEAD>
1487<TBODY>
ef416fc2 1488<TR><TD><CODE>/</CODE></TD><TD>The path for all get operations (get-printers, get-jobs, etc.)</TD></TR>
1489<TR><TD><CODE>/admin</CODE></TD><TD>The path for all administration operations (add-printer, delete-printer, start-printer, etc.)</TD></TR>
1490<TR><TD><CODE>/admin/conf</CODE></TD><TD>The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)</TD></TR>
1491<TR><TD><CODE>/admin/log</CODE></TD><TD>The path for access to the CUPS log files (access_log, error_log, page_log)</TD></TR>
1492<TR><TD><CODE>/classes</CODE></TD><TD>The path for all classes</TD></TR>
1493<TR><TD><CODE>/classes/name</CODE></TD><TD>The resource for class <CODE>name</CODE></TD></TR>
1494<TR><TD><CODE>/jobs</CODE></TD><TD>The path for all jobs (hold-job, release-job, etc.)</TD></TR>
1495<TR><TD><CODE>/jobs/id</CODE></TD><TD>The resource for job <CODE>id</CODE></TD></TR>
1496<TR><TD><CODE>/printers</CODE></TD><TD>The path for all printers</TD></TR>
1497<TR><TD><CODE>/printers/name</CODE></TD><TD>The path for printer <CODE>name</CODE></TD></TR>
1498<TR><TD><CODE>/printers/name.ppd</CODE></TD><TD>The PPD file path for printer <CODE>name</CODE></TD></TR>
480ef0fe 1499</TBODY>
ef416fc2 1500</TABLE></DIV>
1501
1502
178cb736
MS
1503<H2 CLASS="title"><A NAME="LogDebugHistory">LogDebugHistory</A></H2>
1504
1505<H3>Examples</H3>
1506
1507<PRE CLASS="command">
1508LogDebugHistory 0
1509LogDebugHistory 200
1510</PRE>
1511
1512<H3>Description</H3>
1513
1514<P>When <A HREF="#LogLevel"><CODE>LogLevel</CODE></A> is not set to
1515<CODE>debug</CODE> or <CODE>debug2</CODE>, the <CODE>LogDebugHistory</CODE>
1516directive specifies the number of debugging messages that are logged when an
1517error occurs during printing. The default is 200 messages. A value of 0
1518disables debugging history entirely and is not recommended.</P>
1519
1520
480ef0fe 1521<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.15</SPAN><A NAME="LogFilePerm">LogFilePerm</A></H2>
ef416fc2 1522
480ef0fe 1523<H3>Examples</H3>
ef416fc2 1524
1525<PRE CLASS="command">
1526LogFilePerm 0644
1527LogFilePerm 0600
1528</PRE>
1529
480ef0fe 1530<H3>Description</H3>
ef416fc2 1531
1532<P>The <CODE>LogFilePerm</CODE> directive specifies the
771bd8cb 1533permissions to use when writing log files. The default
b94498cf 1534is @CUPS_LOG_FILE_PERM@.</P>
ef416fc2 1535
1536
480ef0fe 1537<H2 CLASS="title"><A NAME="LogLevel">LogLevel</A></H2>
ef416fc2 1538
480ef0fe 1539<H3>Examples</H3>
ef416fc2 1540
1541<PRE CLASS="command">
1542LogLevel none
1543LogLevel emerg
1544LogLevel alert
1545LogLevel crit
1546LogLevel error
1547LogLevel warn
1548LogLevel notice
1549LogLevel info
1550LogLevel debug
1551LogLevel debug2
1552</PRE>
1553
480ef0fe 1554<H3>Description</H3>
ef416fc2 1555
1556<P>The <CODE>LogLevel</CODE> directive specifies the level of
1557logging for the <A HREF="#ErrorLog"><CODE>ErrorLog</CODE></A>
1558file. The following values are recognized (each level logs
1559everything under the preceding levels):</P>
1560
1561<UL>
1562
1563 <LI><CODE>none</CODE> - Log nothing</LI>
1564
1565 <LI><CODE>emerg</CODE> - Log emergency conditions that
1566 prevent the server from running</LI>
1567
1568 <LI><CODE>alert</CODE> - Log alerts that must be handled
1569 immediately</LI>
1570
1571 <LI><CODE>crit</CODE> - Log critical errors that don't
1572 prevent the server from running</LI>
1573
1574 <LI><CODE>error</CODE> - Log general errors</LI>
1575
1576 <LI><CODE>warn</CODE> - Log errors and warnings</LI>
1577
1578 <LI><CODE>notice</CODE> - Log temporary error conditions</LI>
1579
1580 <LI><CODE>info</CODE> - Log all requests and state
1f0275e3 1581 changes</LI>
ef416fc2 1582
1583 <LI><CODE>debug</CODE> - Log basic debugging
1584 information</LI>
1585
1586 <LI><CODE>debug2</CODE> - Log all debugging
1587 information</LI>
1588
1589</UL>
1590
1f0275e3
MS
1591<p>The default <code>LogLevel</code> is <code>@CUPS_LOG_LEVEL@</code>.</p>
1592
ef416fc2 1593
dfd5680b
MS
1594<H2 CLASS="title"><A NAME="LogTimeFormat">LogTimeFormat</A></H2>
1595
1596<H3>Examples</H3>
1597
1598<PRE CLASS="command">
1599LogTimeFormat standard
1600LogTimeFormat usecs
1601</PRE>
1602
1603<H3>Description</H3>
1604
1605<P>The <CODE>LogTimeFormat</CODE> directive specifies the format used for the
1606date and time in the log files. <CODE>Standard</CODE> uses the standard Apache
1607Common Log Format date and time while <CODE>usecs</CODE> adds microseconds.
1608The default is <CODE>standard</CODE>.</P>
1609
1610
480ef0fe 1611<H2 CLASS="title"><A NAME="MaxClients">MaxClients</A></H2>
ef416fc2 1612
480ef0fe 1613<H3>Examples</H3>
ef416fc2 1614
1615<PRE CLASS="command">
1616MaxClients 100
1617MaxClients 1024
1618</PRE>
1619
480ef0fe 1620<H3>Description</H3>
ef416fc2 1621
1622<P>The <CODE>MaxClients</CODE> directive controls the maximum
1623number of simultaneous clients that will be allowed by the
1624server. The default is 100 clients.</P>
1625
1626<BLOCKQUOTE><B>Note:</B>
1627
1628<P>Since each print job requires a file descriptor for the status
1629pipe, the scheduler internally limits the <CODE>MaxClients</CODE>
1630value to 1/3 of the available file descriptors to avoid possible
1631problems when printing large numbers of jobs.</P>
1632
1633</BLOCKQUOTE>
1634
1635
480ef0fe 1636<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.18</SPAN><A NAME="MaxClientsPerHost">MaxClientsPerHost</A></H2>
ef416fc2 1637
480ef0fe 1638<H3>Examples</H3>
ef416fc2 1639
1640<PRE CLASS="command">
1641MaxClientsPerHost 10
1642</PRE>
1643
480ef0fe 1644<H3>Description</H3>
ef416fc2 1645
1646<P>The <CODE>MaxClientsPerHost</CODE> directive controls the
1647maximum number of simultaneous clients that will be allowed from
1648a single host by the server. The default is the
1649<CODE>MaxClients</CODE> value.</P>
1650
1651<P>This directive provides a small measure of protection against
1652Denial of Service attacks from a single host.</P>
1653
1654
480ef0fe 1655<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.16</SPAN><A NAME="MaxCopies">MaxCopies</A></H2>
ef416fc2 1656
480ef0fe 1657<H3>Examples</H3>
ef416fc2 1658
1659<PRE CLASS="command">
1660MaxCopies 100
1661MaxCopies 65535
1662</PRE>
1663
480ef0fe 1664<H3>Description</H3>
ef416fc2 1665
1666<P>The <CODE>MaxCopies</CODE> directive controls the maximum
1667number of copies that a user can print of a job. The default is
b94498cf 1668@CUPS_MAX_COPIES@ copies.</P>
ef416fc2 1669
1670<BLOCKQUOTE><B>Note:</B>
1671
1672<P>Most HP PCL laser printers internally limit the number of
1673copies to 100.</P>
1674
1675</BLOCKQUOTE>
1676
1677
1678
480ef0fe 1679<H2 CLASS="title"><A NAME="MaxJobs">MaxJobs</A></H2>
ef416fc2 1680
480ef0fe 1681<H3>Examples</H3>
ef416fc2 1682
1683<PRE CLASS="command">
1684MaxJobs 100
1685MaxJobs 9999
1686MaxJobs 0
1687</PRE>
1688
480ef0fe 1689<H3>Description</H3>
ef416fc2 1690
1691<P>The <CODE>MaxJobs</CODE> directive controls the maximum number
1692of jobs that are kept in memory. Once the number of jobs reaches
1693the limit, the oldest completed job is automatically purged from
1694the system to make room for the new one. If all of the known jobs
1695are still pending or active then the new job will be
1696rejected.</P>
1697
1698<P>Setting the maximum size to 0 disables this functionality. The
80ca4592 1699default setting is 500.</P>
ef416fc2 1700
1701
480ef0fe 1702<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="MaxJobsPerPrinter">MaxJobsPerPrinter</A></H2>
ef416fc2 1703
480ef0fe 1704<H3>Examples</H3>
ef416fc2 1705
1706<PRE CLASS="command">
1707MaxJobsPerPrinter 100
1708MaxJobsPerPrinter 9999
1709MaxJobsPerPrinter 0
1710</PRE>
1711
480ef0fe 1712<H3>Description</H3>
ef416fc2 1713
1714<P>The <CODE>MaxJobsPerPrinter</CODE> directive controls the
1715maximum number of active jobs that are allowed for each printer
1716or class. Once a printer or class reaches the limit, new jobs
1717will be rejected until one of the active jobs is completed,
1718stopped, aborted, or canceled.</P>
1719
1720<P>Setting the maximum to 0 disables this functionality. The
1721default setting is 0.</P>
1722
1723
480ef0fe 1724<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="MaxJobsPerUser">MaxJobsPerUser</A></H2>
ef416fc2 1725
480ef0fe 1726<H3>Examples</H3>
ef416fc2 1727
1728<PRE CLASS="command">
1729MaxJobsPerUser 100
1730MaxJobsPerUser 9999
1731MaxJobsPerUser 0
1732</PRE>
1733
480ef0fe 1734<H3>Description</H3>
ef416fc2 1735
1736<P>The <CODE>MaxJobsPerUser</CODE> directive controls the maximum
1737number of active jobs that are allowed for each user. Once a user
1738reaches the limit, new jobs will be rejected until one of the
1739active jobs is completed, stopped, aborted, or canceled.</P>
1740
1741<P>Setting the maximum to 0 disables this functionality. The
1742default setting is 0.</P>
1743
1744
dcb445bc
MS
1745<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.6</SPAN><A NAME="MaxJobTime">MaxJobTime</A></H2>
1746
1747<H3>Examples</H3>
1748
1749<PRE CLASS="command">
1750MaxJobTime 10800
1751MaxJobTime 0
1752</PRE>
1753
1754<H3>Description</H3>
1755
1756<P>The <CODE>MaxJobTime</CODE> directive controls the maximum number of
1757seconds allowed for a job to complete printing before it is considered "stuck".
1758The job is canceled automatically if it takes longer than the specified number of seconds to complete.</P>
1759
1760<p>Setting the maximum time to 0 disables this functionality. The default
1761setting is 10800 seconds (3 hours).</P>
1762
1763
480ef0fe 1764<H2 CLASS="title"><A NAME="MaxLogSize">MaxLogSize</A></H2>
ef416fc2 1765
480ef0fe 1766<H3>Examples</H3>
ef416fc2 1767
1768<PRE CLASS="command">
1769MaxLogSize 1048576
1770MaxLogSize 1m
1771MaxLogSize 0
1772</PRE>
1773
480ef0fe 1774<H3>Description</H3>
ef416fc2 1775
1776<P>The <CODE>MaxLogSize</CODE> directive controls the maximum
1777size of each log file. Once a log file reaches or exceeds the
1778maximum size it is closed and renamed to <VAR>filename.O</VAR>.
1779This allows you to rotate the logs automatically. The default
1780size is 1048576 bytes (1MB).</P>
1781
1782<P>Setting the maximum size to 0 disables log rotation.</P>
1783
1784
480ef0fe 1785<H2 CLASS="title"><SPAN CLASS="info">Deprecated</SPAN><A NAME="MaxRequestSize">MaxRequestSize</A></H2>
ef416fc2 1786
480ef0fe 1787<H3>Examples</H3>
ef416fc2 1788
1789<PRE CLASS="command">
1790MaxRequestSize 10485760
1791MaxRequestSize 10m
1792MaxRequestSize 0
1793</PRE>
1794
480ef0fe 1795<H3>Description</H3>
ef416fc2 1796
1797<P>The <CODE>MaxRequestSize</CODE> directive controls the maximum
1798size of print files, IPP requests, and HTML form data in HTTP
1799POST requests. The default limit is 0 which disables the limit
1800check.</P>
1801
480ef0fe 1802<P><B>This directive is deprecated and will be removed in a
ef416fc2 1803future CUPS release.</B> Use the <A
1804HREF="#LimitRequestBody"><CODE>LimitRequestBody</CODE></A>
1805directive instead.</P>
1806
1807
b0f6947b 1808<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/Mac OS X 10.6</SPAN><A NAME="MultipleOperationTimeout">MultipleOperationTimeout</A></H2>
dfd5680b
MS
1809
1810<H3>Examples</H3>
1811
1812<PRE CLASS="command">
1813MultipleOperationTimeout 60
1814MultipleOperationTimeout 300
1815MultipleOperationTimeout 86400
1816</PRE>
1817
1818<H3>Description</H3>
1819
1820<P>The <CODE>MultipleOperationTimeout</CODE> directive sets the maximum amount
1821of time between files in a multi-file print job. The default is 300 seconds.</P>
1822
1823
480ef0fe 1824<H2 CLASS="title"><A NAME="Order">Order</A></H2>
ef416fc2 1825
480ef0fe 1826<H3>Examples</H3>
ef416fc2 1827
1828<PRE CLASS="command">
480ef0fe 1829&lt;Location /path&gt;
1830 ...
1831 Order Allow,Deny
1832 Order Deny,Allow
1833&lt;/Location&gt;
ef416fc2 1834</PRE>
1835
480ef0fe 1836<H3>Description</H3>
ef416fc2 1837
1838<P>The <CODE>Order</CODE> directive defines the default access
1839control. The following values are supported:</P>
1840
1841<UL>
1842
1843 <LI><CODE>allow,deny</CODE> - Deny requests by default,
1844 then check the <A HREF="#Allow"><CODE>Allow</CODE></A>
1845 lines followed by the <A
1846 HREF="#Deny"><CODE>Deny</CODE></A> lines</LI>
1847
1848 <LI><CODE>deny,allow</CODE> - Allow requests by default,
1849 then check the <A HREF="#Deny"><CODE>Deny</CODE></A>
1850 lines followed by the <A
1851 HREF="#Allow"><CODE>Allow</CODE></A> lines</LI>
1852
1853</UL>
1854
1855<P>The <CODE>Order</CODE> directive must appear inside a <A
480ef0fe 1856HREF="#Location"><CODE>Location</CODE></A> or <A
1857HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 1858
1859
480ef0fe 1860<H2 CLASS="title"><A NAME="PageLog">PageLog</A></H2>
ef416fc2 1861
480ef0fe 1862<H3>Examples</H3>
ef416fc2 1863
1864<PRE CLASS="command">
1865PageLog /var/log/cups/page_log
1866PageLog /var/log/cups/page_log-%s
1867PageLog syslog
1868</PRE>
1869
480ef0fe 1870<H3>Description</H3>
ef416fc2 1871
1872<P>The <CODE>PageLog</CODE> directive sets the name of the page
1873log file. If the filename is not absolute then it is assumed to
1874be relative to the <A
1875HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
b94498cf 1876default page log file is <VAR>@CUPS_LOGDIR@/page_log</VAR>.</P>
ef416fc2 1877
1878<P>The server name can be included in the filename by using
1879<CODE>%s</CODE> in the name.</P>
1880
1881<P>The special name "syslog" can be used to send the page
1882information to the system log instead of a plain file.</P>
1883
1884
01ce6322
MS
1885<H2 CLASS="title"><A NAME="PageLogFormat">PageLogFormat</A></H2>
1886
1887<H3>Examples</H3>
1888
1889<PRE CLASS="command">
0268488e
MS
1890PageLogFormat %p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}
1891PageLogFormat PAGE %p %u %j %P %C %{job-billing} %{job-originating-host-name}
01ce6322
MS
1892</PRE>
1893
1894<H3>Description</H3>
1895
1896<P>The <CODE>PageLogFormat</CODE> directive sets the format of lines
1897that are logged to the page log file. Sequences beginning with percent (%)
1898characters are replaced with the corresponding information, while all other
1899characters are copied literally. The following percent sequences are
1900recognized:</P>
1901
1902<UL>
1903
1904 <LI><CODE>%%</CODE>: Inserts a single percent character.</LI>
1905
1906 <LI><CODE>%{name}</CODE>: Inserts the value of the specified IPP
1907 attribute.</LI>
1908
1909 <LI><CODE>%C</CODE>: Inserts the number of copies for the current page.</LI>
1910
1911 <LI><CODE>%P</CODE>: Inserts the current page number.</LI>
1912
1913 <LI><CODE>%T</CODE>: Inserts the current date and time in common log
1914 format.</LI>
1915
1916 <LI><CODE>%j</CODE>: Inserts the job ID.</LI>
1917
1918 <LI><CODE>%p</CODE>: Inserts the printer name.</LI>
1919
1920 <LI><CODE>%u</CODE>: Inserts the username.</LI>
1921
1922</UL>
1923
0268488e 1924<P>The default is "%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}".</P>
01ce6322
MS
1925
1926
b0f6947b 1927<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="PassEnv">PassEnv</A></H2>
480ef0fe 1928
1929<H3>Examples</H3>
1930
1931<PRE CLASS="command">
1932PassEnv MY_ENV_VARIABLE
1933</PRE>
1934
1935<H3>Description</H3>
1936
1937<P>The <CODE>PassEnv</CODE> directive specifies an environment
1938variable that should be passed to child processes. Normally, the
1939scheduler only passes the <CODE>DYLD_LIBRARY_PATH</CODE>,
1940<CODE>LD_ASSUME_KERNEL</CODE>, <CODE>LD_LIBRARY_PATH</CODE>,
1941<CODE>LD_PRELOAD</CODE>, <CODE>NLSPATH</CODE>,
1942<CODE>SHLIB_PATH</CODE>, <CODE>TZ</CODE>, and <CODE>VGARGS</CODE>
1943environment variables to child processes.</P>
1944
1945
b0f6947b 1946<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="Policy">Policy</A></H2>
ef416fc2 1947
480ef0fe 1948<H3>Examples</H3>
1949
1950<PRE CLASS="command">
1951&lt;Policy name&gt;
1952 &lt;Limit operation ... operation&gt;
1953 ...
1954 &lt;/Limit&gt;
1955 &lt;Limit operation ... operation&gt;
1956 ...
1957 &lt;/Limit&gt;
1958 &lt;Limit All&gt;
1959 ...
1960 &lt;/Limit&gt;
1961&lt;/Policy&gt;
1962</PRE>
1963
1964<H3>Description</H3>
1965
1966<P>The <CODE>Policy</CODE> directive specifies IPP operation
1967access control limits. Each policy contains 1 or more <A
1968HREF="#LimitIPP"><CODE>Limit</CODE></A> sections to set the
1969access control limits for specific operations - user limits,
1970authentication, encryption, and allowed/denied addresses,
1971domains, or hosts. The <CODE>&lt;Limit All&gt;</CODE> section
1972specifies the default access control limits for operations that
1973are not listed.</P>
1974
1975<P>Policies are named and associated with printers via the
1976printer's operation policy setting
1977(<CODE>printer-op-policy</CODE>). The default policy for the
1978scheduler is specified using the <A
1979HREF="#DefaultPolicy"><CODE>DefaultPolicy</CODE></A>
1980directive.</P>
1981
1982
1983<H2 CLASS="title"><A NAME="Port">Port</A></H2>
1984
1985<H3>Examples</H3>
ef416fc2 1986
1987<PRE CLASS="command">
1988Port 631
1989Port 80
1990</PRE>
1991
480ef0fe 1992<H3>Description</H3>
ef416fc2 1993
1994<P>The <CODE>Port</CODE> directive specifies a port to listen on.
1995Multiple <CODE>Port</CODE> lines can be specified to listen on
1996multiple ports. The <CODE>Port</CODE> directive is equivalent to
1997"<CODE>Listen *:nnn</CODE>". The default port is 631.</P>
1998
1999<BLOCKQUOTE><B>Note:</B>
2000
2001<P>On systems that support IPv6, this directive will bind to both
2002the IPv4 and IPv6 wildcard address.</P>
2003
2004</BLOCKQUOTE>
2005
2006
480ef0fe 2007<H2 CLASS="title"><A NAME="PreserveJobHistory">PreserveJobHistory</A></H2>
ef416fc2 2008
480ef0fe 2009<H3>Examples</H3>
ef416fc2 2010
2011<PRE CLASS="command">
2012PreserveJobHistory On
2013PreserveJobHistory Off
2014</PRE>
2015
480ef0fe 2016<H3>Description</H3>
ef416fc2 2017
2018<P>The <CODE>PreserveJobHistory</CODE> directive controls whether
2019the history of completed, canceled, or aborted print jobs is
2020stored on disk.</P>
2021
2022<P>A value of <CODE>On</CODE> (the default) preserves job
2023information until the administrator purges it with the
2024<CODE>cancel</CODE> command.</P>
2025
2026<P>A value of <CODE>Off</CODE> removes the job information as
2027soon as each job is completed, canceled, or aborted.</P>
2028
2029
480ef0fe 2030<H2 CLASS="title"><A NAME="PreserveJobFiles">PreserveJobFiles</A></H2>
ef416fc2 2031
480ef0fe 2032<H3>Examples</H3>
ef416fc2 2033
2034<PRE CLASS="command">
2035PreserveJobFiles On
2036PreserveJobFiles Off
2037</PRE>
2038
480ef0fe 2039<H3>Description</H3>
ef416fc2 2040
2041<P>The <CODE>PreserveJobFiles</CODE> directive controls whether
2042the document files of completed, canceled, or aborted print jobs
2043are stored on disk.</P>
2044
2045<P>A value of <CODE>On</CODE> preserves job files until the
2046administrator purges them with the <CODE>cancel</CODE> command.
2047Jobs can be restarted (and reprinted) as desired until they are
2048purged.</P>
2049
2050<P>A value of <CODE>Off</CODE> (the default) removes the job
2051files as soon as each job is completed, canceled, or aborted.</P>
2052
2053
480ef0fe 2054<H2 CLASS="title"><A NAME="Printcap">Printcap</A></H2>
ef416fc2 2055
480ef0fe 2056<H3>Examples</H3>
ef416fc2 2057
2058<PRE CLASS="command">
2059Printcap
2060Printcap /etc/printcap
2061Printcap /etc/printers.conf
0af14961 2062Printcap /Library/Preferences/org.cups.printers.plist
ef416fc2 2063</PRE>
2064
480ef0fe 2065<H3>Description</H3>
ef416fc2 2066
2067<P>The <CODE>Printcap</CODE> directive controls whether or not a
2068printcap file is automatically generated and updated with a list
2069of available printers. If specified with no value, then no
2070printcap file will be generated. The default is to generate a
0af14961 2071file named <VAR>@CUPS_DEFAUL_PRINTCAP@</VAR>.</P>
ef416fc2 2072
0af14961 2073<P>When a filename is specified (e.g. <VAR>@CUPS_DEFAULT_PRINTCAP@</VAR>),
ef416fc2 2074the printcap file is written whenever a printer is added or
2075removed. The printcap file can then be used by applications that
2076are hardcoded to look at the printcap file for the available
2077printers.</P>
2078
2079
480ef0fe 2080<H2 CLASS="title"><A NAME="PrintcapFormat">PrintcapFormat</A></H2>
ef416fc2 2081
480ef0fe 2082<H3>Examples</H3>
ef416fc2 2083
2084<PRE CLASS="command">
2085PrintcapFormat BSD
2086PrintcapFormat Solaris
0af14961 2087PrintcapFormat plist
ef416fc2 2088</PRE>
2089
480ef0fe 2090<H3>Description</H3>
ef416fc2 2091
0af14961
MS
2092<P>The <CODE>PrintcapFormat</CODE> directive controls the output format of the
2093printcap file. The default is to generate the plist format on Mac OS X, the
2094Solaris format on Solaris, and the BSD format on other operating systems.</P>
ef416fc2 2095
2096
480ef0fe 2097<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.13</SPAN><A NAME="PrintcapGUI">PrintcapGUI</A></H2>
2098
2099<H3>Examples</H3>
2100
2101<PRE CLASS="command">
2102PrintGUI /usr/bin/glpoptions
2103</PRE>
2104
2105<H3>Description</H3>
2106
2107<P>The <CODE>PrintcapGUI</CODE> directive sets the program to
2108associate with the IRIX printer GUI interface script which is
2109used by IRIX applications to display printer-specific options.
2110There is no default program.</P>
2111
2112
2113<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.21</SPAN><A NAME="ReloadTimeout">ReloadTimeout</A></H2>
2114
2115<H3>Examples</H3>
2116
2117<PRE CLASS="command">
2118ReloadTimeout 0
49d87452 2119ReloadTimeout 30
480ef0fe 2120</PRE>
2121
2122<H3>Description</H3>
2123
2124<P>The <CODE>ReloadTimeout</CODE> directive specifies the number
2125of seconds the scheduler will wait for active jobs to complete
49d87452 2126before doing a restart. The default is 30 seconds.</P>
ef416fc2 2127
480ef0fe 2128
2129<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="RemoteRoot">RemoteRoot</A></H2>
2130
2131<H3>Examples</H3>
ef416fc2 2132
2133<PRE CLASS="command">
2134RemoteRoot remroot
2135RemoteRoot root
2136</PRE>
2137
480ef0fe 2138<H3>Description</H3>
ef416fc2 2139
2140<P>The <CODE>RemoteRoot</CODE> directive sets the username for
2141unauthenticated root requests from remote hosts. The default
2142username is <VAR>remroot</VAR>. Setting <CODE>RemoteRoot</CODE>
2143to <VAR>root</VAR> effectively disables this security
2144mechanism.</P>
2145
2146
480ef0fe 2147<H2 CLASS="title"><A NAME="RequestRoot">RequestRoot</A></H2>
ef416fc2 2148
480ef0fe 2149<H3>Examples</H3>
ef416fc2 2150
2151<PRE CLASS="command">
2152RequestRoot /var/spool/cups
2153RequestRoot /foo/bar/spool/cups
2154</PRE>
2155
480ef0fe 2156<H3>Description</H3>
ef416fc2 2157
2158<P>The <CODE>RequestRoot</CODE> directive sets the directory for
2159incoming IPP requests and HTML forms. If an absolute path is not
2160provided then it is assumed to be relative to the <A
2161HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
b94498cf 2162default request directory is <VAR>@CUPS_REQUESTS@</VAR>.</P>
ef416fc2 2163
2164
480ef0fe 2165<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Require">Require</A></H2>
ef416fc2 2166
480ef0fe 2167<H3>Examples</H3>
ef416fc2 2168
2169<PRE CLASS="command">
480ef0fe 2170&lt;Location /path&gt;
2171 ...
2172 Require group foo bar
2173 Require user john mary
2174 Require valid-user
2175 Require user @groupname
2176 Require user @SYSTEM
2177 Require user @OWNER
2178&lt;/Location&gt;
ef416fc2 2179</PRE>
2180
480ef0fe 2181<H3>Description</H3>
ef416fc2 2182
2183<P>The <CODE>Require</CODE> directive specifies that
2184authentication is required for the resource. The
2185<CODE>group</CODE> keyword specifies that the authenticated user
2186must be a member of one or more of the named groups that
2187follow.</P>
2188
4b3f67ff 2189<P>The <CODE>user</CODE> keyword specifies that the
ef416fc2 2190authenticated user must be one of the named users or groups that
2191follow. Group names are specified using the "@" prefix.</P>
2192
2193<P>The <CODE>valid-user</CODE> keyword specifies that any
2194authenticated user may access the resource.</P>
2195
2196<P>The default is to do no authentication. This directive must
480ef0fe 2197appear inside a <A HREF="#Location"><CODE>Location</CODE></A> or
2198<A HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 2199
2200
480ef0fe 2201<H2 CLASS="title"><A NAME="RIPCache">RIPCache</A></H2>
ef416fc2 2202
480ef0fe 2203<H3>Examples</H3>
ef416fc2 2204
2205<PRE CLASS="command">
eac3a0a0 2206RIPCache 128m
ef416fc2 2207RIPCache 1g
2208RIPCache 2048k
2209</PRE>
2210
480ef0fe 2211<H3>Description</H3>
ef416fc2 2212
2213<P>The <CODE>RIPCache</CODE> directive sets the size of the
2214memory cache used by Raster Image Processor ("RIP") filters such
2215as <CODE>imagetoraster</CODE> and <CODE>pstoraster</CODE>. The
2216size can be suffixed with a "k" for kilobytes, "m" for megabytes,
eac3a0a0 2217or "g" for gigabytes. The default cache size is "128m", or 128
ef416fc2 2218megabytes.</P>
2219
2220
480ef0fe 2221<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.16</SPAN><A NAME="RootCertDuration">RootCertDuration</A></H2>
2222
2223<H3>Examples</H3>
2224
2225<PRE CLASS="command">
2226RootCertDuration 0
2227RootCertDuration 300
2228</PRE>
2229
2230<H3>Description</H3>
2231
2232<P>The <CODE>RootCertDuration</CODE> directive specifies the
2233number of seconds the <EM>root certificate</EM> remains valid.
2234The scheduler will generate a new certificate as needed when the
2235number of seconds has expired. If set to 0, the root certificate
2236is generated only once on startup or on a restart. The default is
2237300 seconds.</P>
2238
2239
2240<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Satisfy">Satisfy</A></H2>
ef416fc2 2241
480ef0fe 2242<H3>Examples</H3>
ef416fc2 2243
2244<PRE CLASS="command">
480ef0fe 2245&lt;Location /path&gt;
2246 ...
2247 Satisfy all
2248 Satisfy any
2249&lt;/Location&gt;
ef416fc2 2250</PRE>
2251
480ef0fe 2252<H3>Description</H3>
ef416fc2 2253
2254<P>The <CODE>Satisfy</CODE> directive specifies whether all
2255conditions must be satisfied to allow access to the resource. If
2256set to <CODE>all</CODE>, then all authentication and access
eac3a0a0 2257control conditions must be satisfied to allow access.</P>
ef416fc2 2258
2259<P>Setting <CODE>Satisfy</CODE> to <CODE>any</CODE> allows a user
2260to gain access if the authentication or access control
2261requirements are satisfied. For example, you might require
2262authentication for remote access, but allow local access without
2263authentication.</P>
2264
2265<P>The default is <CODE>all</CODE>. This directive must appear
480ef0fe 2266inside a <A HREF="#Location"><CODE>Location</CODE></A> or <A
2267HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
ef416fc2 2268
2269
480ef0fe 2270<H2 CLASS="title"><A NAME="ServerAdmin">ServerAdmin</A></H2>
ef416fc2 2271
480ef0fe 2272<H3>Examples</H3>
ef416fc2 2273
2274<PRE CLASS="command">
2275ServerAdmin user@host
2276ServerAdmin root@foo.bar.com
2277</PRE>
2278
480ef0fe 2279<H3>Description</H3>
ef416fc2 2280
2281<P>The <CODE>ServerAdmin</CODE> directive identifies the email
2282address for the administrator on the system. By default the
2283administrator email address is <CODE>root@server</CODE>, where
480ef0fe 2284<CODE>server</CODE> is the <A
2285HREF="#ServerName"><CODE>ServerName</CODE></A>.</P>
ef416fc2 2286
2287
178cb736
MS
2288<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.3.10</SPAN><A NAME="ServerAlias">ServerAlias</A></H2>
2289
2290<H3>Examples</H3>
2291
2292<PRE CLASS="command">
2293ServerAlias althost
eac3a0a0
MS
2294ServerAlias foo.example.com
2295ServerAlias bar.example.com
88f9aafc 2296ServerAlias one.example.com two.example.com
178cb736
MS
2297ServerAlias *
2298</PRE>
2299
2300<H3>Description</H3>
2301
eac3a0a0 2302<P>The <CODE>ServerAlias</CODE> directive specifies alternate names that the server is known by. By default it contains a list of all aliases associated with the <A HREF="#ServerName"><CODE>ServerName</CODE></A>. The special name "*" can be used to allow any hostname when accessing CUPS via an external network interfaces.</P>
178cb736
MS
2303
2304<BLOCKQUOTE><B>Note</B>
2305
2306<P>The <CODE>ServerAlias</CODE> directive is used for HTTP Host header
2307validation when clients connect to the scheduler from external interfaces.
2308Using the special name "*" can expose your system to known browser-based
2309DNS rebinding attacks, even when accessing sites through a firewall. If the
2310auto-discovery of alternate names does not work, we recommend listing each
2311alternate name with a ServerAlias directive instead of using "*".</P>
2312
2313</BLOCKQUOTE>
2314
2315
480ef0fe 2316<H2 CLASS="title"><A NAME="ServerBin">ServerBin</A></H2>
ef416fc2 2317
480ef0fe 2318<H3>Examples</H3>
ef416fc2 2319
2320<PRE CLASS="command">
2321ServerBin /usr/lib/cups
2322ServerBin /foo/bar/lib/cups
2323</PRE>
2324
480ef0fe 2325<H3>Description</H3>
ef416fc2 2326
2327<P>The <CODE>ServerBin</CODE> directive sets the directory for
2328server-run executables. If an absolute path is not provided then
2329it is assumed to be relative to the <A
2330HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
480ef0fe 2331default executable directory is <VAR>/usr/lib/cups</VAR>,
2332<VAR>/usr/lib32/cups</VAR>, or <VAR>/usr/libexec/cups</VAR>
2333depending on the operating system.</P>
ef416fc2 2334
2335
480ef0fe 2336<H2 CLASS="title"><A NAME="ServerCertificate">ServerCertificate</A></H2>
ef416fc2 2337
480ef0fe 2338<H3>Examples</H3>
ef416fc2 2339
2340<PRE CLASS="command">
2341ServerCertificate /etc/cups/ssl/server.crt
2342</PRE>
2343
480ef0fe 2344<H3>Description</H3>
ef416fc2 2345
2346<P>The <CODE>ServerCertificate</CODE> directive specifies the
2347location of the SSL certificate file used by the server when
2348negotiating encrypted connections. The certificate must not be
2349encrypted (password protected) since the scheduler normally runs
2350in the background and will be unable to ask for a password.</P>
2351
2352<P>The default certificate file is
2353<VAR>/etc/cups/ssl/server.crt</VAR>.</P>
2354
2355
480ef0fe 2356<H2 CLASS="title"><A NAME="ServerKey">ServerKey</A></H2>
ef416fc2 2357
480ef0fe 2358<H3>Examples</H3>
ef416fc2 2359
2360<PRE CLASS="command">
2361ServerKey /etc/cups/ssl/server.key
2362</PRE>
2363
480ef0fe 2364<H3>Description</H3>
ef416fc2 2365
2366<P>The <CODE>ServerKey</CODE> directive specifies the location of
2367the SSL private key file used by the server when negotiating
2368encrypted connections.</P>
2369
2370<P>The default key file is
2371<VAR>/etc/cups/ssl/server.crt</VAR>.</P>
2372
2373
b86bc4cf 2374<H2 CLASS="title"><A NAME="ServerName">ServerName</A></H2>
ef416fc2 2375
480ef0fe 2376<H3>Examples</H3>
ef416fc2 2377
2378<PRE CLASS="command">
eac3a0a0
MS
2379ServerName foo.example.com
2380ServerName myserver.example.com
ef416fc2 2381</PRE>
2382
480ef0fe 2383<H3>Description</H3>
ef416fc2 2384
2385<P>The <CODE>ServerName</CODE> directive specifies the hostname
2386that is reported to clients. By default the server name is the
2387hostname.</P>
2388
2389
480ef0fe 2390<H2 CLASS="title"><A NAME="ServerRoot">ServerRoot</A></H2>
ef416fc2 2391
480ef0fe 2392<H3>Examples</H3>
ef416fc2 2393
2394<PRE CLASS="command">
2395ServerRoot /etc/cups
2396ServerRoot /foo/bar/cups
2397</PRE>
2398
480ef0fe 2399<H3>Description</H3>
ef416fc2 2400
2401<P>The <CODE>ServerRoot</CODE> directive specifies the absolute
2402path to the server configuration and state files. It is also used
2403to resolve relative paths in the <VAR>cupsd.conf</VAR> file. The
2404default server directory is <VAR>/etc/cups</VAR>.</P>
2405
2406
480ef0fe 2407<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.21</SPAN><A NAME="ServerTokens">ServerTokens</A></H2>
2408
2409<H3>Examples</H3>
2410
2411<PRE CLASS="command">
2412ServerTokens None
2413ServerTokens ProductOnly
2414ServerTokens Major
2415ServerTokens Minor
2416ServerTokens Minimal
2417ServerTokens OS
2418ServerTokens Full
2419</PRE>
2420
2421<H3>Description</H3>
2422
2423<P>The <CODE>ServerTokens</CODE> directive specifies the
2424information that is included in the <CODE>Server:</CODE> header
2425of all HTTP responses. Table 4 lists the token name along with
2426the text that is returned. The default is
2427<CODE>Minimal</CODE>.</P>
2428
2429<DIV CLASS="table"><TABLE SUMMARY="ServerToken Names and Values">
2430<CAPTION>Table 4: <A NAME="TABLE4">ServerToken Names and Values</A></CAPTION>
2431<THEAD>
2432<TR>
2433 <TH>Name</TH>
2434 <TH>Value</TH>
2435</TR>
2436</THEAD>
2437<TBODY>
2438<TR>
2439 <TD>None</TD>
2440 <TD>No <CODE>Server:</CODE> header is returned</TD>
2441</TR>
2442<TR>
2443 <TD>ProductOnly</TD>
2444 <TD>"CUPS"</TD>
2445</TR>
2446<TR>
2447 <TD>Major</TD>
2448 <TD>"CUPS 1"</TD>
2449</TR>
2450<TR>
2451 <TD>Minor</TD>
2452 <TD>"CUPS 1.2"</TD>
2453</TR>
2454<TR>
2455 <TD>Minimal</TD>
2456 <TD>"CUPS 1.2.N" where N is the patch release</TD>
2457</TR>
2458<TR>
2459 <TD>OS</TD>
2460 <TD>"CUPS 1.2.N (UNAME)" where N is the patch release and
2461 UNAME is the output of the <B>uname(1)</B> command</TD>
2462</TR>
2463<TR>
2464 <TD>Full</TD>
2465 <TD>"CUPS 1.2.N (UNAME) IPP/1.1" where N is the patch
2466 release and UNAME is the output of the <B>uname(1)</B>
2467 command</TD>
2468</TR>
2469</TBODY>
2470</TABLE></DIV>
2471
2472
b0f6947b 2473<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="SetEnv">SetEnv</A></H2>
480ef0fe 2474
2475<H3>Examples</H3>
2476
2477<PRE CLASS="command">
2478SetEnv PATH /usr/lib/cups/filter:/bin:/usr/bin:/usr/local/bin
2479SetEnv MY_ENV_VAR foo
2480</PRE>
2481
2482<H3>Description</H3>
2483
2484<P>The <CODE>SetEnv</CODE> directive specifies an environment
2485variable that should be passed to child processes.</P>
2486
2487
4220952d 2488<H2 CLASS="title"><A NAME="SSLListen">SSLListen</A></H2>
ef416fc2 2489
480ef0fe 2490<H3>Examples</H3>
ef416fc2 2491
2492<PRE CLASS="command">
4220952d
MS
2493SSLListen 127.0.0.1:443
2494SSLListen 192.0.2.1:443
ef416fc2 2495</PRE>
2496
480ef0fe 2497<H3>Description</H3>
ef416fc2 2498
4220952d 2499<P>The <CODE>SSLListen</CODE> directive specifies a network
ef416fc2 2500address and port to listen for secure connections. Multiple
4220952d 2501<CODE>SSLListen</CODE> directives can be provided to listen on
ef416fc2 2502multiple addresses.</P>
2503
4220952d 2504<P>The <CODE>SSLListen</CODE> directive is similar to the <A
ef416fc2 2505HREF="#SSLPort"><CODE>SSLPort</CODE></A> directive but allows you
2506to restrict access to specific interfaces or networks.</P>
2507
2508
b19ccc9e
MS
2509<H2 CLASS="title"><A NAME="SSLOptions">SSLOptions</A></H2>
2510
2511<H3>Examples</H3>
2512
2513<PRE CLASS="command">
2514SSLOptions None
2515SSLOptions NoEmptyFragments
2516</PRE>
2517
2518<H3>Description</H3>
2519
2520<P>The <CODE>SSLOptions</CODE> directive specifies additional SSL/TLS
2521protocol options to use for encrypted connected. Currently only two
2522options are supported - <code>None</code> (the default) for the most
2523secure mode and <code>NoEmptyFragments</code> to allow CUPS to work with
2524Microsoft Windows with the FIPS conformance mode enabled.</p>
2525
2526
480ef0fe 2527<H2 CLASS="title"><A NAME="SSLPort">SSLPort</A></H2>
ef416fc2 2528
480ef0fe 2529<H3>Examples</H3>
ef416fc2 2530
2531<PRE CLASS="command">
2532SSLPort 443
2533</PRE>
2534
480ef0fe 2535<H3>Description</H3>
ef416fc2 2536
2537<P>The <CODE>SSLPort</CODE> directive specifies a port to listen
2538on for secure connections. Multiple <CODE>SSLPort</CODE> lines
2539can be specified to listen on multiple ports.</P>
2540
2541
10d09e33
MS
2542<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="SubscriptionPrivateAccess">SubscriptionPrivateAccess</A></H2>
2543
2544<H3>Examples</H3>
2545
2546<PRE CLASS="command">
2547SubscriptionPrivateAccess all
2548SubscriptionPrivateAccess default
2549SubscriptionPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM}+
2550</PRE>
2551
2552<H3>Description</H3>
2553
2554<P>The <CODE>SubscriptionPrivateAccess</CODE> directive specifies the access list for a
2555subscription's private values. The "default" access list is "@OWNER @SYSTEM".
2556"@ACL" maps to the printer's requesting-user-name-allowed or
2557requesting-user-name-denied values.</P>
2558
2559<P>The <CODE>SubscriptionPrivateAccess</CODE> directive must appear inside a <A
2560HREF="#Policy"><CODE>Policy</CODE></A> section.</P>
2561
2562
2563<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="SubscriptionPrivateValues">SubscriptionPrivateValues</A></H2>
2564
2565<H3>Examples</H3>
2566
2567<PRE CLASS="command">
2568SubscriptionPrivateValues all
2569SubscriptionPrivateValues default
2570SubscriptionPrivateValues none
2571SubscriptionPrivateValues attribute-name-1 [ ... attribute-name-N ]
2572</PRE>
2573
2574<H3>Description</H3>
2575
2576<P>The <CODE>SubscriptionPrivateValues</CODE> directive specifies the list of
2577subscription values to make private. The "default" values are "notify-events",
2578"notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and
2579"notify-user-data".</P>
2580
2581<P>The <CODE>SubscriptionPrivateValues</CODE> directive must appear inside a <A
2582HREF="#Policy"><CODE>Policy</CODE></A> section.</P>
2583
2584
480ef0fe 2585<H2 CLASS="title"><A NAME="SystemGroup">SystemGroup</A></H2>
ef416fc2 2586
480ef0fe 2587<H3>Examples</H3>
ef416fc2 2588
2589<PRE CLASS="command">
2590SystemGroup lpadmin
2591SystemGroup sys
2592SystemGroup system
2593SystemGroup root
480ef0fe 2594SystemGroup root lpadmin
ef416fc2 2595</PRE>
2596
480ef0fe 2597<H3>Description</H3>
ef416fc2 2598
2599<P>The <CODE>SystemGroup</CODE> directive specifies the system
480ef0fe 2600administration group for <CODE>System</CODE> authentication.
2601Multiple groups can be listed, separated with spaces. The default
b94498cf 2602group list is <CODE>@CUPS_SYSTEM_GROUPS@</CODE>.</P>
ef416fc2 2603
2604
480ef0fe 2605<H2 CLASS="title"><A NAME="TempDir">TempDir</A></H2>
ef416fc2 2606
480ef0fe 2607<H3>Examples</H3>
ef416fc2 2608
2609<PRE CLASS="command">
2610TempDir /var/tmp
2611TempDir /foo/bar/tmp
2612</PRE>
2613
480ef0fe 2614<H3>Description</H3>
ef416fc2 2615
2616<P>The <CODE>TempDir</CODE> directive specifies an absolute path
2617for the directory to use for temporary files. The default
b94498cf 2618directory is <VAR>@CUPS_REQUESTS@/tmp</VAR>.</P>
ef416fc2 2619
2620<P>Temporary directories must be world-writable and should have
2621the "sticky" permission bit enabled so that other users cannot
2622delete filter temporary files. The following commands will create
2623an appropriate temporary directory called
2624<VAR>/foo/bar/tmp</VAR>:</P>
2625
2626<PRE CLASS="command">
2627<KBD>mkdir /foo/bar/tmp</KBD>
2628<KBD>chmod a+rwxt /foo/bar/tmp</KBD>
2629</PRE>
2630
2631
480ef0fe 2632<H2 CLASS="title"><A NAME="Timeout">Timeout</A></H2>
ef416fc2 2633
480ef0fe 2634<H3>Examples</H3>
ef416fc2 2635
2636<PRE CLASS="command">
2637Timeout 300
2638Timeout 90
2639</PRE>
2640
480ef0fe 2641<H3>Description</H3>
ef416fc2 2642
2643<P>The <CODE>Timeout</CODE> directive controls the amount of time
2644to wait before an active HTTP or IPP request times out. The
2645default timeout is 300 seconds.</P>
2646
2647
b0f6947b 2648<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="UseNetworkDefault">UseNetworkDefault</A></H2>
a74454a7 2649
2650<H3>Examples</H3>
2651
2652<PRE CLASS="command">
2653UseNetworkDefault yes
2654UseNetworkDefault no
2655</PRE>
2656
2657<H3>Description</H3>
2658
2659<P>The <CODE>UseNetworkDefault</CODE> directive controls whether
2660the client will use a network/remote printer as a default
2661printer. If enabled, the default printer of a server is used as
2662the default printer on a client. When multiple servers are
2663advertising a default printer, the client's default printer is
2664set to the first discovered printer, or to the implicit class for
2665the same printer available from multiple servers.</P>
2666
b94498cf 2667<P>The default is <CODE>@CUPS_USE_NETWORK_DEFAULT@</CODE>.</P>
a74454a7 2668
2669
480ef0fe 2670<H2 CLASS="title"><A NAME="User">User</A></H2>
ef416fc2 2671
480ef0fe 2672<H3>Examples</H3>
ef416fc2 2673
2674<PRE CLASS="command">
2675User lp
2676User guest
2677</PRE>
2678
480ef0fe 2679<H3>Description</H3>
ef416fc2 2680
2681<P>The <CODE>User</CODE> directive specifies the UNIX user that
2682filter and CGI programs run as. The default user is
b94498cf 2683<CODE>@CUPS_USER@</CODE>.</P>
ef416fc2 2684
2685<BLOCKQUOTE><B>Note:</B>
2686
2687<P>You may not use user <CODE>root</CODE>, as that would expose
2688the system to unacceptable security risks. The scheduler will
2689automatically choose user <CODE>nobody</CODE> if you specify a
2690user whose ID is 0.</P>
2691
2692</BLOCKQUOTE>
2693
2694
229681c1
MS
2695<H2 CLASS="title"><SPAN CLASS="INFO">CUPS 1.5</SPAN><A NAME="WebInterface">WebInterface</A></H2>
2696
2697<H3>Examples</H3>
2698
2699<PRE CLASS="command">
2700WebInterface yes
2701WebInterface no
2702</PRE>
2703
2704<H3>Description</H3>
2705
2706<P>The <CODE>WebInterface</CODE> directive specifies whether the web interface is enabled. The default value is <CODE>@CUPS_WEBIF@</CODE>.</P>
2707
ef416fc2 2708</BODY>
2709</HTML>