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