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