2 <!-- SECTION: References -->
4 <TITLE>cupsd.conf
</TITLE>
5 <LINK REL=
"STYLESHEET" TYPE=
"text/css" HREF=
"../cups-printable.css">
9 <H1 CLASS=
"title">cupsd.conf
</H1>
11 <P>The
<VAR>/etc/cups/cupsd.conf
</VAR> file contains
12 configuration
<I>directives
</I> that control how the server
13 functions. Each directive is listed on a line by itself followed
14 by its value. Comments are introduced using the number sign (
"#")
15 character at the beginning of a line.
</P>
17 <P>Since the server configuration file consists of plain text,
18 you can use your favorite text editor to make changes to it.
19 After making any changes, restart the
<CODE>cupsd(
8)
</CODE>
20 process using the startup script for your operating system:
</P>
24 <LI>AIX, IRIX, Linux, Solaris:
26 /etc/init.d/cups restart
31 /sbin/init.d/cups restart
36 sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
37 sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist
42 <P>You can also edit this file from the CUPS web interface, which
43 automatically handles restarting the scheduler.
</P>
46 <H2 CLASS=
"title"><A NAME=
"AccessLog">AccessLog
</A></H2>
51 AccessLog /var/log/cups/access_log
52 AccessLog /var/log/cups/access_log-%s
58 <P>The
<CODE>AccessLog
</CODE> directive sets the name of the
59 access log file. If the filename is not absolute then it is
60 assumed to be relative to the
<A
61 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory. The
62 access log file is stored in
"common log format" and can be used
63 by any web access reporting tool to generate a report on CUPS
66 <P>The server name can be included in the filename by using
67 <CODE>%s
</CODE> in the name.
</P>
69 <P>The special name
"syslog" can be used to send the access
70 information to the system log instead of a plain file.
</P>
72 <P>The default access log file is
73 <VAR>@CUPS_LOGDIR@/access_log
</VAR>.
</P>
76 <H2 CLASS=
"title"><A NAME=
"AccessLogLevel">AccessLogLevel
</A></H2>
82 AccessLogLevel actions
88 <P>The
<CODE>AccessLogLevel
</CODE> directive controls which requests are logged
89 to the access log file. The following levels are defined:
</P>
93 <LI><CODE>config
</CODE>; Log when printers and classes are added,
94 deleted, or modified and when configuration files are accessed or
97 <LI><CODE>actions
</CODE>; Log when print jobs are submitted,
98 held, released, modified, or canceled, and any of the conditions
99 for
<CODE>config
</CODE>.
</LI>
101 <LI><CODE>all
</CODE>; Log all requests.
</LI>
105 <P>The default access log level is
<CODE>@CUPS_ACCESS_LOG_LEVEL@
</CODE>.
</P>
108 <H2 CLASS=
"title"><A NAME=
"Allow">Allow
</A></H2>
112 <PRE CLASS=
"command">
113 <Location /path
>
117 Allow from *.domain.com
118 Allow from .domain.com
119 Allow from host.domain.com
122 Allow from nnn.nnn.nnn.*
123 Allow from nnn.nnn.nnn.nnn
124 Allow from nnn.nnn.nnn.nnn/mm
125 Allow from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
126 Allow from xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
134 <P>The
<CODE>Allow
</CODE> directive specifies a hostname, IP
135 address, or network that is allowed access to the server.
136 <CODE>Allow
</CODE> directives are cummulative, so multiple
137 <CODE>Allow
</CODE> directives can be used to allow access for
138 multiple hosts or networks.
</P>
140 <P>Host and domain name matching require that you enable the
<A
141 HREF=
"#HostNameLookups"><CODE>HostNameLookups
</CODE></A>
144 <P>The
<CODE>/mm
</CODE> notation specifies a CIDR netmask, as shown in
145 <A HREF=
"#TABLE1">Table
1</A>.
</P>
147 <DIV CLASS=
"table"><TABLE SUMMARY=
"CIDR Netmasks">
148 <CAPTION>Table
1:
<A NAME=
"TABLE1">CIDR Netmasks
</A></CAPTION>
150 <TH WIDTH=
"10%">mm
</TH>
151 <TH WIDTH=
"20%">netmask
</TH>
152 <TH WIDTH=
"10%">mm
</TH>
153 <TH WIDTH=
"20%">netmask
</TH>
156 <TD ALIGN=
"CENTER">0</TD>
157 <TD ALIGN=
"CENTER">0.0.0.0</TD>
158 <TD ALIGN=
"CENTER">8</TD>
159 <TD ALIGN=
"CENTER">255.0.0.0</TD>
162 <TD ALIGN=
"CENTER">1</TD>
163 <TD ALIGN=
"CENTER">128.0.0.0</TD>
164 <TD ALIGN=
"CENTER">16</TD>
165 <TD ALIGN=
"CENTER">255.255.0.0</TD>
168 <TD ALIGN=
"CENTER">2</TD>
169 <TD ALIGN=
"CENTER">192.0.0.0</TD>
170 <TD ALIGN=
"CENTER">24</TD>
171 <TD ALIGN=
"CENTER">255.255.255.0</TD>
174 <TD ALIGN=
"CENTER">...
</TD>
175 <TD ALIGN=
"CENTER">...
</TD>
176 <TD ALIGN=
"CENTER">32</TD>
177 <TD ALIGN=
"CENTER">255.255.255.255</TD>
181 <P>The
<CODE>@LOCAL
</CODE> name will allow access from all local
182 interfaces. The
<CODE>@IF(name)
</CODE> name will allow access
183 from the named interface. In both cases, CUPS only allows access
184 from the network that the interface(s) are configured for -
185 requests arriving on the interface from a foreign network will
186 <em>not
</em> be accepted.
</P>
188 <P>The
<CODE>Allow
</CODE> directive must appear inside a
<A
189 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
190 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
193 <H2 CLASS=
"title"><SPAN CLASS=
"info">Deprecated
</SPAN><A NAME=
"AuthClass">AuthClass
</A></H2>
197 <PRE CLASS=
"command">
198 <Location /path
>
209 <P>The
<CODE>AuthClass
</CODE> directive defines what level of
210 authentication is required:
</P>
214 <LI><CODE>Anonymous
</CODE> - No authentication should be
215 performed (default)
</LI>
217 <LI><CODE>User
</CODE> - A valid username and password is
220 <LI><CODE>System
</CODE> - A valid username and password
221 is required, and the username must belong to the
"sys"
222 group; this can be changed using the
<A
223 HREF=
"#SystemGroup"><CODE>SystemGroup
</CODE></A>
226 <LI><CODE>Group
</CODE> - A valid username and password is
227 required, and the username must belong to the group named
229 HREF=
"#AuthGroupName"><CODE>AuthGroupName
</CODE></A>
234 <P>The
<CODE>AuthClass
</CODE> directive must appear inside a
<A
235 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
236 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
238 <P><B>This directive is deprecated and will be removed from a
239 future release of CUPS.
</B> Consider using the more flexible
<A
240 HREF=
"#Require"><CODE>Require
</CODE></A> directive instead.
</P>
243 <H2 CLASS=
"title"><SPAN CLASS=
"info">Deprecated
</SPAN><A NAME=
"AuthGroupName">AuthGroupName
</A></H2>
247 <PRE CLASS=
"command">
248 <Location /path
>
250 AuthGroupName mygroup
257 <P>The
<CODE>AuthGroupName
</CODE> directive sets the group to use
258 for
<CODE>Group
</CODE> authentication.
</P>
260 <P>The
<CODE>AuthGroupName
</CODE> directive must appear inside a
261 <A HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
262 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
264 <P><B>This directive is deprecated and will be removed from a
265 future release of CUPS.
</B> Consider using the more flexible
<A
266 HREF=
"#Require"><CODE>Require
</CODE></A> directive instead.
</P>
269 <H2 CLASS=
"title"><A NAME=
"AuthType">AuthType
</A></H2>
273 <PRE CLASS=
"command">
274 <Location /path
>
286 <P>The
<CODE>AuthType
</CODE> directive defines the type of
287 authentication to perform:
</P>
291 <LI><CODE>None
</CODE> - No authentication should be
292 performed (default)
</LI>
294 <LI><CODE>Basic
</CODE> - Basic authentication should be
295 performed using the UNIX password and group files
</LI>
297 <LI><CODE>Digest
</CODE> - Digest authentication should be
298 performed using the
<VAR>/etc/cups/passwd.md5
</VAR>
301 <LI><CODE>BasicDigest
</CODE> - Basic authentication
302 should be performed using the
303 <VAR>/etc/cups/passwd.md5
</VAR> file
</LI>
305 <LI><CODE>Negotiate
</CODE> - Kerberos authentication
306 should be performed
</LI>
310 <P>When using
<CODE>Basic
</CODE>,
<CODE>Digest
</CODE>,
311 <CODE>BasicDigest
</CODE>, or
<CODE>Negotiate
</CODE> authentication,
312 clients connecting through the
<CODE>localhost
</CODE> interface can
313 also authenticate using certificates.
</P>
315 <P>The
<CODE>AuthType
</CODE> directive must appear inside a
<A
316 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
317 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
320 <H2 CLASS=
"title"><A NAME=
"AutoPurgeJobs">AutoPurgeJobs
</A></H2>
324 <PRE CLASS=
"command">
331 <P>The
<CODE>AutoPurgeJobs
</CODE> directive specifies whether or
332 not to purge completed jobs once they are no longer required for
333 quotas. This option has no effect if quotas are not enabled. The
334 default setting is
<CODE>No
</CODE>.
</P>
337 <H2 CLASS=
"title"><A NAME=
"BrowseAddress">BrowseAddress
</A></H2>
341 <PRE CLASS=
"command">
342 BrowseAddress
255.255.255.255:
631
343 BrowseAddress
192.0.2.255:
631
344 BrowseAddress host.domain.com:
631
346 BrowseAddress @IF(name)
351 <P>The
<CODE>BrowseAddress
</CODE> directive specifies an address
352 to send browsing information to. Multiple
353 <CODE>BrowseAddress
</CODE> directives can be specified to send
354 browsing information to different networks or systems.
</P>
356 <P>The
<CODE>@LOCAL
</CODE> name will broadcast printer
357 information to all local interfaces. The
<CODE>@IF(name)
</CODE>
358 name will broadcast to the named interface.
</P>
360 <P>There is no default browse address.
</P>
362 <BLOCKQUOTE><B>Note:
</B>
364 <P>If you are using HP-UX
10.20 and a subnet that is not
24,
365 16, or
8 bits, printer browsing (and in fact all broadcast
366 reception) will not work. This problem appears to be fixed in
372 <H2 CLASS=
"title"><A NAME=
"BrowseAllow">BrowseAllow
</A></H2>
376 <PRE CLASS=
"command">
378 BrowseAllow from none
379 BrowseAllow from
192.0.2
380 BrowseAllow from
192.0.2.0/
24
381 BrowseAllow from
192.0.2.0/
255.255.255.0
382 BrowseAllow from *.domain.com
383 BrowseAllow from @LOCAL
384 BrowseAllow from @IF(name)
389 <P>The
<CODE>BrowseAllow
</CODE> directive specifies a system or
390 network to accept browse packets from. The default is to accept
391 browse packets from all hosts.
</P>
393 <P>Host and domain name matching require that you enable the
<A
394 HREF=
"#HostNameLookups"><CODE>HostNameLookups
</CODE></A>
397 <P>IP address matching supports exact matches, partial addresses that match
398 networks using netmasks of
255.0.0.0,
255.255.0.0, and
255.255.255.0, or network
399 addresses using the specified netmask or bit count. The
<CODE>/mm
</CODE>
400 notation specifies a CIDR netmask, a shown in
<A HREF=
"TABLE1">Table
1</A>.
</P>
402 <P>The
<CODE>@LOCAL
</CODE> name will allow browse data from all
403 local interfaces. The
<CODE>@IF(name)
</CODE> name will allow
404 browse data from the named interface. In both cases, CUPS only
405 allows data from the network that the interface(s) are configured
406 for - data arriving on the interface from a foreign network will
407 <em>not
</em> be allowed.
</P>
410 <H2 CLASS=
"title"><A NAME=
"BrowseDeny">BrowseDeny
</A></H2>
414 <PRE CLASS=
"command">
417 BrowseDeny from
192.0.2
418 BrowseDeny from
192.0.2.0/
24
419 BrowseDeny from
192.0.2.0/
255.255.255.0
420 BrowseDeny from *.domain.com
421 BrowseDeny from @LOCAL
422 BrowseDeny from @IF(name)
427 <P>The
<CODE>BrowseDeny
</CODE> directive specifies a system or
428 network to reject browse packets from. The default is to not deny
429 browse packets from any hosts.
</P>
431 <P>Host and domain name matching require that you enable the
<A
432 HREF=
"#HostNameLookups"><CODE>HostNameLookups
</CODE></A>
435 <P>IP address matching supports exact matches, partial addresses that match
436 networks using netmasks of
255.0.0.0,
255.255.0.0, and
255.255.255.0, or network
437 addresses using the specified netmask or bit count. The
<CODE>/mm
</CODE>
438 notation specifies a CIDR netmask, a shown in
<A HREF=
"TABLE1">Table
1</A>.
</P>
440 <P>The
<CODE>@LOCAL
</CODE> name will block browse data from all
441 local interfaces. The
<CODE>@IF(name)
</CODE> name will block
442 browse data from the named interface. In both cases, CUPS only
443 blocks data from the network that the interface(s) are configured
444 for - data arriving on the interface from a foreign network will
445 <em>not
</em> be blocked.
</P>
448 <H2 CLASS=
"title"><A NAME=
"BrowseInterval">BrowseInterval
</A></H2>
452 <PRE CLASS=
"command">
459 <P>The
<CODE>BrowseInterval
</CODE> directive specifies the
460 maximum amount of time between browsing updates. Specifying a
461 value of
0 seconds disables outgoing browse updates but allows a
462 server to receive printer information from other hosts.
</P>
464 <P>The
<CODE>BrowseInterval
</CODE> value should always be less
465 than the
<A HREF=
"#BrowseTimeout"><CODE>BrowseTimeout
</CODE></A>
466 value. Otherwise printers and classes will disappear from client
467 systems between updates.
</P>
470 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"BrowseLDAPBindDN">BrowseLDAPBindDN
</A></H2>
474 <PRE CLASS=
"command">
480 <P>The
<CODE>BrowseLDAPBindDN
</CODE> directive specifies the LDAP
481 domain name to use when listening for printer registrations. The
482 default is undefined.
</P>
485 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/Mac OS X
10.6</SPAN><A NAME=
"BrowseLDAPCACertFile">BrowseLDAPCACertFile
</A></H2>
489 <PRE CLASS=
"command">
490 BrowseLDAPCACertFile /etc/cups/ssl/certs
495 <P>The
<CODE>BrowseLDAPCACertFile
</CODE> directive specifies the SSL certificate
496 authority file to use for LDAP + SSL. The default is undefined.
</P>
499 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"BrowseLDAPDN">BrowseLDAPDN
</A></H2>
503 <PRE CLASS=
"command">
509 <P>The
<CODE>BrowseLDAPDN
</CODE> directive specifies the LDAP
510 domain name to use when registering local shared printers. The
511 default is undefined.
</P>
514 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"BrowseLDAPPassword">BrowseLDAPPassword
</A></H2>
518 <PRE CLASS=
"command">
519 BrowseLDAPPassword foo123
524 <P>The
<CODE>BrowseLDAPPassword
</CODE> directive specifies the
525 access password to use when connecting to the LDAP server. The
526 default is undefined.
</P>
529 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"BrowseLDAPServer">BrowseLDAPServer
</A></H2>
533 <PRE CLASS=
"command">
534 BrowseLDAPServer localhost
539 <P>The
<CODE>BrowseLDAPServer
</CODE> directive specifies the name
540 of the LDAP server to connect to. The default is undefined.
</P>
543 <H2 CLASS=
"title"><A NAME=
"BrowseLocalOptions">BrowseLocalOptions
</A></H2>
547 <PRE CLASS=
"command">
548 BrowseLocalOptions compression=yes
549 BrowseLocalOptions encryption=required
550 BrowseLocalOptions compression=yes
&encryption=required
555 <P>The
<CODE>BrowseLocalOptions
</CODE> directive specifies
556 additional IPP backend options to advertise with local shared
557 printers. The default is to not include any options.
</P>
560 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"BrowseLocalProtocols">BrowseLocalProtocols
</A></H2>
564 <PRE CLASS=
"command">
565 BrowseLocalProtocols all
566 BrowseLocalProtocols none
567 BrowseLocalProtocols cups
568 BrowseLocalProtocols dnssd
569 BrowseLocalProtocols ldap
570 BrowseLocalProtocols lpd
571 BrowseLocalProtocols slp
572 BrowseLocalProtocols smb
573 BrowseLocalProtocols cups dnssd
578 <P>The
<CODE>BrowseLocalProtocols
</CODE> directive specifies the
579 protocols to use when advertising local shared printers on the
580 network. Multiple protocols can be specified by separating them
581 with spaces. The default is
"<CODE>@CUPS_BROWSE_LOCAL_PROTOCOLS@</CODE>".
</P>
584 <H2 CLASS=
"title"><A NAME=
"BrowseOrder">BrowseOrder
</A></H2>
588 <PRE CLASS=
"command">
589 BrowseOrder allow,deny
590 BrowseOrder deny,allow
595 <P>The
<CODE>BrowseOrder
</CODE> directive specifies the order of
596 allow/deny processing. The default order is
597 <CODE>deny,allow
</CODE>:
</P>
601 <LI><CODE>allow,deny
</CODE> - Deny browse packets by
602 default, then check
<CODE>BrowseAllow
</CODE> lines
603 followed by
<CODE>BrowseDeny
</CODE> lines.
</LI>
605 <LI><CODE>deny,allow
</CODE> - Allow browse packets by
606 default, then check
<CODE>BrowseDeny
</CODE> lines
607 followed by
<CODE>BrowseAllow
</CODE> lines.
</LI>
612 <H2 CLASS=
"title"><A NAME=
"BrowsePoll">BrowsePoll
</A></H2>
616 <PRE CLASS=
"command">
617 BrowsePoll
192.0.2.2:
631
618 BrowsePoll host.domain.com:
631
623 <P>The
<CODE>BrowsePoll
</CODE> directive polls a server for
624 available printers once every
<A
625 HREF=
"#BrowseInterval"><CODE>BrowseInterval
</CODE></A> seconds.
626 Multiple
<CODE>BrowsePoll
</CODE> directives can be specified to
627 poll multiple servers.
</P>
629 <P>If
<CODE>BrowseInterval
</CODE> is set to
0 then the server is
630 polled once every
30 seconds.
</P>
633 <H2 CLASS=
"title"><A NAME=
"BrowsePort">BrowsePort
</A></H2>
637 <PRE CLASS=
"command">
644 <P>The
<CODE>BrowsePort
</CODE> directive specifies the UDP port number
645 used for browse packets. The default port number is
631.
</P>
647 <BLOCKQUOTE><B>Note:
</B>
649 <P>You must set the
<CODE>BrowsePort
</CODE> to the same value
650 on all of the systems that you want to see.
655 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.10</SPAN><A NAME=
"BrowseProtocols">BrowseProtocols
</A></H2>
659 <PRE CLASS=
"command">
663 BrowseProtocols dnssd
668 BrowseProtocols cups dnssd
673 <P>The
<CODE>BrowseProtocols
</CODE> directive specifies the
674 protocols to use when showing and advertising shared printers on
675 the local network. Multiple protocols can be specified by
676 separating them with spaces. The default protocol is
677 "<CODE>@CUPS_BROWSE_LOCAL_PROTOCOLS@</CODE>" for
678 <A HREF=
"#BrowseLocalProtocols"><CODE>BrowseLocalProtocols
</CODE></A> and
679 "<CODE>@CUPS_BROWSE_REMOTE_PROTOCOLS@</CODE>" for
680 <A HREF=
"#BrowseRemoteProtocols"><CODE>BrowseRemoteProtocols
</CODE></A>.
</P>
682 <BLOCKQUOTE><B>Note:
</B>
684 <P>When using the
<CODE>SLP
</CODE> protocol, you must have at least
685 one Directory Agent (DA) server on your network. Otherwise the
686 CUPS scheduler (
<CODE>cupsd
</CODE>) will not respond to client
687 requests for several seconds while polling the network.
</P>
692 <H2 CLASS=
"title"><A NAME=
"BrowseRelay">BrowseRelay
</A></H2>
696 <PRE CLASS=
"command">
697 BrowseRelay
193.0.2.1 192.0.2.255
698 BrowseRelay
193.0.2.0/
255.255.255.0 192.0.2.255
699 BrowseRelay
193.0.2.0/
24 192.0.2.255
700 BrowseRelay *.domain.com
192.0.2.255
701 BrowseRelay host.domain.com
192.0.2.255
706 <P>The
<CODE>BrowseRelay
</CODE> directive specifies source and
707 destination addresses for relaying browsing information from one
708 host or network to another. Multiple
<CODE>BrowseRelay
</CODE>
709 directives can be specified as needed.
</P>
711 <P><CODE>BrowseRelay
</CODE> is typically used on systems that
712 bridge multiple subnets using one or more network interfaces. It
713 can also be used to relay printer information from polled servers
716 <PRE CLASS=
"command">
717 BrowseRelay
127.0.0.1 @LOCAL
720 <P>This effectively provides access to printers on a WAN for all
721 clients on the LAN(s).
</P>
724 <H2 CLASS=
"title"><A NAME=
"BrowseRemoteOptions">BrowseRemoteOptions
</A></H2>
728 <PRE CLASS=
"command">
729 BrowseRemoteOptions compression=yes
730 BrowseRemoteOptions encryption=required
731 BrowseRemoteOptions ?compression=yes
&encryption=required
736 <P>The
<CODE>BrowseRemoteOptions
</CODE> directive specifies
737 additional IPP backend options to include with remote shared
738 printers. If the options string begins with a question mark (?),
739 the options replace any options specified by the remote server.
740 The default is to not include any options.
</P>
743 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"BrowseRemoteProtocols">BrowseRemoteProtocols
</A></H2>
747 <PRE CLASS=
"command">
748 BrowseRemoteProtocols all
749 BrowseRemoteProtocols none
750 BrowseRemoteProtocols cups
751 BrowseRemoteProtocols ldap
752 BrowseRemoteProtocols slp
757 <P>The
<CODE>BrowseRemoteProtocols
</CODE> directive specifies the
758 protocols to use when finding remote shared printers on the
759 network. Multiple protocols can be specified by separating them
760 with spaces. The default is
"<CODE>@CUPS_BROWSE_REMOTE_PROTOCOLS@</CODE>".
</P>
763 <H2 CLASS=
"title"><A NAME=
"BrowseShortNames">BrowseShortNames
</A></H2>
767 <PRE CLASS=
"command">
774 <P>The
<CODE>BrowseShortNames
</CODE> directive specifies whether
775 or not short names are used for remote printers when possible.
776 Short names are just the remote printer name, without the server
777 (
"printer"). If more than one remote printer is detected with the
778 same name, the printers will have long names (
"printer@server1",
779 "printer@server2".)
</P>
781 <P>The default value for this option is
<CODE>@CUPS_BROWSE_SHORT_NAMES@
</CODE>.
</P>
784 <H2 CLASS=
"title"><A NAME=
"BrowseTimeout">BrowseTimeout
</A></H2>
788 <PRE CLASS=
"command">
795 <P>The
<CODE>BrowseTimeout
</CODE> directive sets the timeout for
796 printer or class information that is received in browse packets.
797 Once a printer or class times out it is removed from the list of
798 available destinations.
</P>
800 <P>The
<CODE>BrowseTimeout
</CODE> value should always be greater
802 HREF=
"#BrowseInterval"><CODE>BrowseInterval
</CODE></A> value.
803 Otherwise printers and classes will disappear from client systems
807 <H2 CLASS=
"title"><A NAME=
"BrowseWebIF">BrowseWebIF
</A></H2>
811 <PRE CLASS=
"command">
818 <P>The
<CODE>BrowseWebIF
</CODE> directive controls whether the CUPS web
819 interface is advertised via DNS-SD. The default setting is
820 <CODE>Off
</CODE>.
</P>
823 <H2 CLASS=
"title"><A NAME=
"Browsing">Browsing
</A></H2>
827 <PRE CLASS=
"command">
834 <P>The
<CODE>Browsing
</CODE> directive controls whether or not
835 network printer browsing is enabled. The default setting is
836 <CODE>@CUPS_BROWSING@
</CODE>.
</P>
838 <P>This directive does not enable sharing of local printers by
839 itself; you must also use the
<A
840 HREF=
"#BrowseAddress"><CODE>BrowseAddress
</CODE></A> or
<A
841 HREF=
"#BrowseProtocols"><CODE>BrowseProtocols
</CODE></A>
842 directives to advertise local printers to other systems.
</P>
844 <BLOCKQUOTE><B>Note:
</B>
846 <P>If you are using HP-UX
10.20 and a subnet that is not
24,
847 16, or
8 bits, printer browsing (and in fact all broadcast
848 reception) will not work. This problem appears to be fixed in
854 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Classification">Classification
</A></H2>
858 <PRE CLASS=
"command">
860 Classification classified
861 Classification confidential
862 Classification secret
863 Classification topsecret
864 Classification unclassified
869 <P>The
<CODE>Classification
</CODE> directive sets the
870 classification level on the server. When this option is set, at
871 least one of the banner pages is forced to the classification
872 level, and the classification is placed on each page of output.
873 The default is no classification level.
</P>
876 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.10</SPAN><A NAME=
"ClassifyOverride">ClassifyOverride
</A></H2>
880 <PRE CLASS=
"command">
887 <P>The
<CODE>ClassifyOverride
</CODE> directive specifies whether
888 users can override the default classification level on the
889 server. When the server classification is set, users can change
890 the classification using the
<CODE>job-sheets
</CODE> option and
891 can choose to only print one security banner before or after the
892 job. If the
<CODE>job-sheets
</CODE> option is set to
893 <CODE>none
</CODE> then the server default classification is
896 <P>The default is to not allow classification overrides.
</P>
899 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.15</SPAN><A NAME=
"ConfigFilePerm">ConfigFilePerm
</A></H2>
903 <PRE CLASS=
"command">
910 <P>The
<CODE>ConfigFilePerm
</CODE> directive specifies the
911 permissions to use when writing configuration files. The default
912 is @CUPS_CONFIG_FILE_PERM@.
</P>
915 <H2 CLASS=
"title"><A NAME=
"DataDir">DataDir
</A></H2>
919 <PRE CLASS=
"command">
920 DataDir /usr/share/cups
925 <P>The
<CODE>DataDir
</CODE> directive sets the directory to use
929 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"DefaultAuthType">DefaultAuthType
</A></H2>
933 <PRE CLASS=
"command">
934 DefaultAuthType Basic
935 DefaultAuthType BasicDigest
936 DefaultAuthType Digest
937 DefaultAuthType Negotiate
942 <P>The
<CODE>DefaultAuthType
</CODE> directive specifies the type
943 of authentication to use for IPP operations that require a
944 username. The default is
<CODE>Basic
</CODE>.
</P>
947 <H2 CLASS=
"title"><A NAME=
"DefaultCharset">DefaultCharset
</A></H2>
951 <PRE CLASS=
"command">
953 DefaultCharset iso-
8859-
1
954 DefaultCharset windows-
1251
959 <P>The
<CODE>DefaultCharset
</CODE> directive sets the default
960 character set to use for client connections. The default
961 character set is
<CODE>utf-
8</CODE> but is overridden by the
962 character set for the language specified by the client or the
963 <CODE>DefaultLanguage
</CODE> directive.
</P>
966 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"DefaultEncryption">DefaultEncryption
</A></H2>
970 <PRE CLASS=
"command">
971 DefaultEncryption Never
972 DefaultEncryption IfRequested
973 DefaultEncryption Required
978 <P>The
<CODE>DefaultEncryption
</CODE> directive specifies the
979 type of encryption to use when performing authentication. The
980 default is
<CODE>Required
</CODE>.
</P>
983 <H2 CLASS=
"title"><A NAME=
"DefaultLanguage">DefaultLanguage
</A></H2>
987 <PRE CLASS=
"command">
997 <P>The
<CODE>DefaultLanguage
</CODE> directive specifies the
998 default language to use for client connections. Setting the
999 default language also sets the default character set if a
1000 language localization file exists for it. The default language
1001 is
"en" for English.
</P>
1004 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/Mac OS X
10.6</SPAN><A NAME=
"DefaultPaperSize">DefaultPaperSize
</A></H2>
1008 <PRE CLASS=
"command">
1009 DefaultPaperSize Letter
1011 DefaultPaperSize Auto
1012 DefaultPaperSize None
1015 <H3>Description
</H3>
1017 <P>The
<CODE>DefaultPaperSize
</CODE> directive specifies the default paper
1018 size to use when creating new printers. The default is
<CODE>Auto
</CODE>
1019 which uses a paper size appropriate for the system default locale. A value
1020 of
<CODE>None
</CODE> tells the scheduler to not set the default paper
1024 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"DefaultPolicy">DefaultPolicy
</A></H2>
1028 <PRE CLASS=
"command">
1029 DefaultPolicy default
1033 <H3>Description
</H3>
1035 <P>The
<CODE>DefaultPolicy
</CODE> directive specifies the default
1036 policy to use for IPP operation. The default is
1037 <CODE>default
</CODE>.
</P>
1040 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"DefaultShared">DefaultShared
</A></H2>
1044 <PRE CLASS=
"command">
1049 <H3>Description
</H3>
1051 <P>The
<CODE>DefaultShared
</CODE> directive specifies whether
1052 printers are shared (published) by default. The default is
1053 <CODE>@CUPS_DEFAULT_SHARED@
</CODE>.
</P>
1056 <H2 CLASS=
"title"><A NAME=
"Deny">Deny
</A></H2>
1060 <PRE CLASS=
"command">
1061 <Location /path
>
1065 Deny from *.domain.com
1066 Deny from .domain.com
1067 Deny from host.domain.com
1070 Deny from nnn.nnn.nnn.*
1071 Deny from nnn.nnn.nnn.nnn
1072 Deny from nnn.nnn.nnn.nnn/mm
1073 Deny from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
1074 Deny from xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
1080 <H3>Description
</H3>
1082 <P>The
<CODE>Deny
</CODE> directive specifies a hostname, IP
1083 address, or network that is denied access to the server.
1084 <CODE>Deny
</CODE> directives are cummulative, so multiple
1085 <CODE>Deny
</CODE> directives can be used to allow access for
1086 multiple hosts or networks.
</P>
1088 <P>Host and domain name matching require that you enable the
<A
1089 HREF=
"#HostNameLookups"><CODE>HostNameLookups
</CODE></A>
1092 <P>The
<CODE>/mm
</CODE> notation specifies a CIDR netmask, a shown in
1093 <A HREF=
"TABLE1">Table
1</A>.
</P>
1095 <P>The
<CODE>@LOCAL
</CODE> name will deny access from all local
1096 interfaces. The
<CODE>@IF(name)
</CODE> name will deny access from
1097 the named interface. In both cases, CUPS only denies access from
1098 the network that the interface(s) are configured for - requests
1099 arriving on the interface from a foreign network will
1100 <em>not
</em> be denied.
</P>
1102 <P>The
<CODE>Deny
</CODE> directive must appear inside a
<A
1103 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
1104 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
1107 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/Mac OS X
10.6</SPAN><A NAME=
"DirtyCleanInterval">DirtyCleanInterval
</A></H2>
1111 <PRE CLASS=
"command">
1112 DirtyCleanInterval
30
1113 DirtyCleanInterval
0
1116 <H3>Description
</H3>
1118 <P>The
<CODE>DirtyCleanInterval
</CODE> directive specifies the number of
1119 seconds to wait before updating configuration and state files for printers,
1120 classes, subscriptions, and jobs. The default is
30 seconds. A value of
0
1121 causes the update to occur as soon as possible, typically within a few
1125 <H2 CLASS=
"title"><A NAME=
"DocumentRoot">DocumentRoot
</A></H2>
1129 <PRE CLASS=
"command">
1130 DocumentRoot /usr/share/doc/cups
1131 DocumentRoot /foo/bar/doc/cups
1134 <H3>Description
</H3>
1136 <P>The
<CODE>DocumentRoot
</CODE> directive specifies the location
1137 of web content for the HTTP server in CUPS. If an absolute path
1138 is not specified then it is assumed to be relative to the
<A
1139 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory. The
1140 default directory is
<VAR>@CUPS_DOCROOT@
</VAR>.
</P>
1142 <P>Documents are first looked up in a sub-directory for the
1143 primary language requested by the client (e.g.
1144 <VAR>@CUPS_DOCROOT@/fr/...
</VAR>) and then directly under
1145 the
<CODE>DocumentRoot
</CODE> directory (e.g.
1146 <VAR>@CUPS_DOCROOT@/...
</VAR>), so it is possible to
1147 localize the web content by providing subdirectories for each
1148 language needed.
</P>
1151 <H2 CLASS=
"title"><A NAME=
"Encryption">Encryption
</A></H2>
1155 <PRE CLASS=
"command">
1156 <Location /path
>
1159 Encryption IfRequested
1164 <H3>Description
</H3>
1166 <P>The
<CODE>Encryption
</CODE> directive must appear instead a
<A
1167 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
1168 HREF=
"#Limit"><CODE>Limit
</CODE></A> section and specifies the
1169 encryption settings for that location. The default setting is
1170 <CODE>IfRequested
</CODE> for all locations.
</P>
1173 <H2 CLASS=
"title"><A NAME=
"ErrorLog">ErrorLog
</A></H2>
1177 <PRE CLASS=
"command">
1178 ErrorLog /var/log/cups/error_log
1179 ErrorLog /var/log/cups/error_log-%s
1183 <H3>Description
</H3>
1185 <P>The
<CODE>ErrorLog
</CODE> directive sets the name of the error
1186 log file. If the filename is not absolute then it is assumed to
1187 be relative to the
<A
1188 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory. The
1189 default error log file is
<VAR>@CUPS_LOGDIR@/error_log
</VAR>.
</P>
1191 <P>The server name can be included in the filename by using
1192 <CODE>%s
</CODE> in the name.
</P>
1194 <P>The special name
"syslog" can be used to send the error
1195 information to the system log instead of a plain file.
</P>
1198 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.3/Mac OS X
10.5</SPAN><A NAME=
"ErrorPolicy">ErrorPolicy
</A></H2>
1202 <PRE CLASS=
"command">
1203 ErrorPolicy abort-job
1204 ErrorPolicy retry-job
1205 ErrorPolicy stop-printer
1208 <H3>Description
</H3>
1210 <P>The
<CODE>ErrorPolicy
</CODE> directive defines the default policy that
1211 is used when a backend is unable to send a print job to the
1214 <P>The following values are supported:
</P>
1218 <LI><CODE>abort-job
</CODE> - Abort the job and proceed
1219 with the next job in the queue
</LI>
1221 <LI><CODE>retry-job
</CODE> - Retry the job after waiting
1222 for N seconds; the
<VAR>cupsd.conf
</VAR> <A
1223 HREF=
"#JobRetryInterval"><CODE>JobRetryInterval
</CODE></A>
1224 directive controls the value of N
</LI>
1226 <LI><CODE>retry-this-job
</CODE> - Retry the current job immediately
1227 and indefinitely.
</LI>
1229 <LI><CODE>stop-printer
</CODE> - Stop the printer and keep
1230 the job for future printing; this is the default
1237 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/Mac OS X
10.6</SPAN><A NAME=
"FatalErrors">FatalErrors
</A></H2>
1241 <PRE CLASS=
"command">
1248 FatalErrors permissions
1249 FatalErrors all -permissions
1250 FatalErrors config permissions log
1253 <H3>Description
</H3>
1255 <P>The
<CODE>FatalErrors
</CODE> directive determines whether certain kinds of
1256 errors are fatal. The following kinds of errors are currently recognized:
</P>
1260 <LI><CODE>none
</CODE> - No errors are fatal
</LI>
1262 <LI><CODE>all
</CODE> - All of the errors below are fatal
</LI>
1264 <LI><CODE>browse
</CODE> - Browsing initialization errors are fatal,
1265 for example failed binding to the CUPS browse port or failed connections
1266 to LDAP servers
</LI>
1268 <LI><CODE>config
</CODE> - Configuration file syntax errors are
1271 <LI><CODE>listen
</CODE> - Listen or Port errors are fatal, except for
1272 IPv6 failures on the loopback or
"any" addresses
</LI>
1274 <LI><CODE>log
</CODE> - Log file creation or write errors are fatal
</LI>
1276 <LI><CODE>permissions
</CODE> - Bad startup file permissions are
1277 fatal, for example shared SSL certificate and key files with world-
1278 read permissions
</LI>
1282 <P>Multiple errors can be listed, and the form
"-kind" can be used with
1283 <CODE>all
</CODE> to remove specific kinds of errors. The default setting is
1284 <CODE>@CUPS_FATAL_ERRORS@
</CODE>.
</P>
1287 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.18</SPAN><A NAME=
"FileDevice">FileDevice
</A></H2>
1291 <PRE CLASS=
"command">
1296 <H3>Description
</H3>
1298 <P>The
<CODE>FileDevice
</CODE> directive determines whether the
1299 scheduler allows new printers to be added using device URIs of
1300 the form
<CODE>file:/filename
</CODE>. File devices are most often
1301 used to test new printer drivers and do not support raw file
1304 <P>The default setting is
<CODE>No
</CODE>.
</P>
1306 <BLOCKQUOTE><B>Note:
</B>
1308 <P>File devices are managed by the scheduler. Since the
1309 scheduler normally runs as the root user, file devices
1310 can be used to overwrite system files and potentially
1311 gain unauthorized access to the system. If you must
1312 create printers using file devices, we recommend that
1313 you set the
<CODE>FileDevice
</CODE> directive to
1314 <CODE>Yes
</CODE> for only as long as you need to add the
1315 printers to the system, and then reset the directive to
1316 <CODE>No
</CODE>.
</P>
1321 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.3</SPAN><A NAME=
"FilterLimit">FilterLimit
</A></H2>
1325 <PRE CLASS=
"command">
1331 <H3>Description
</H3>
1333 <P>The
<CODE>FilterLimit
</CODE> directive sets the maximum cost
1334 of all running job filters. It can be used to limit the number of
1335 filter programs that are run on a server to minimize disk,
1336 memory, and CPU resource problems. A limit of
0 disables filter
1339 <P>An average print to a non-PostScript printer needs a filter
1340 limit of about
200. A PostScript printer needs about half that
1341 (
100). Setting the limit below these thresholds will effectively
1342 limit the scheduler to printing a single job at any time.
</P>
1344 <P>The default limit is
0.
</P>
1347 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.16</SPAN><A NAME=
"FilterNice">FilterNice
</A></H2>
1351 <PRE CLASS=
"command">
1357 <H3>Description
</H3>
1359 <P>The
<CODE>FilterNice
</CODE> directive sets the
<B>nice(
1)
</B>
1360 value to assign to filter processes. The nice value ranges from
1361 0, the highest priority, to
19, the lowest priority. The default
1365 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.3</SPAN><A NAME=
"FontPath">FontPath
</A></H2>
1369 <PRE CLASS=
"command">
1370 FontPath /foo/bar/fonts
1371 FontPath /usr/share/cups/fonts:/foo/bar/fonts
1374 <H3>Description
</H3>
1376 <P>The
<CODE>FontPath
</CODE> directive specifies the font path to
1377 use when searching for fonts. The default font path is
1378 <CODE>/usr/share/cups/fonts
</CODE>.
</P>
1381 <H2 CLASS=
"title"><A NAME=
"Group">Group
</A></H2>
1385 <PRE CLASS=
"command">
1390 <H3>Description
</H3>
1392 <P>The
<CODE>Group
</CODE> directive specifies the UNIX group that
1393 filter and CGI programs run as. The default group is
1394 system-specific but is usually
<CODE>lp
</CODE> or
1395 <CODE>nobody
</CODE>.
</P>
1398 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.10</SPAN><A NAME=
"HideImplicitMembers">HideImplicitMembers
</A></H2>
1402 <PRE CLASS=
"command">
1403 HideImplicitMembers Yes
1404 HideImplicitMembers No
1407 <H3>Description
</H3>
1409 <P>The
<CODE>HideImplicitMembers
</CODE> directive controls
1410 whether the individual printers in an implicit class are hidden
1411 from the user. The default is
<CODE>Yes
</CODE>.
</P>
1413 <P><A HREF=
"#ImplicitClasses"><CODE>ImplicitClasses
</CODE></A>
1414 must be enabled for this directive to have any effect.
</P>
1417 <H2 CLASS=
"title"><A NAME=
"HostNameLookups">HostNameLookups
</A></H2>
1421 <PRE CLASS=
"command">
1424 HostNameLookups Double
1427 <H3>Description
</H3>
1429 <P>The
<CODE>HostNameLookups
</CODE> directive controls whether or
1430 not CUPS looks up the hostname for connecting clients. The
1431 <CODE>Double
</CODE> setting causes CUPS to verify that the
1432 hostname resolved from the address matches one of the addresses
1433 returned for that hostname.
<CODE>Double
</CODE> lookups also
1434 prevent clients with unregistered addresses from connecting to
1437 <P>The default is
<CODE>Off
</CODE> to avoid the potential server
1438 performance problems with hostname lookups. Set this option to
1439 <CODE>On
</CODE> or
<CODE>Double
</CODE> only if absolutely
1443 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.10</SPAN><A NAME=
"ImplicitAnyClasses">ImplicitAnyClasses
</A></H2>
1447 <PRE CLASS=
"command">
1448 ImplicitAnyClasses On
1449 ImplicitAnyClasses Off
1452 <H3>Description
</H3>
1454 <P>The
<CODE>ImplicitAnyClasses
</CODE> directive controls
1455 whether implicit classes for local and remote printers are
1456 created with the name
<CODE>AnyPrinter
</CODE>. The default
1457 setting is
<CODE>Off
</CODE>.
</P>
1459 <P><A HREF=
"#ImplicitClasses"><CODE>ImplicitClasses
</CODE></A>
1460 must be enabled for this directive to have any effect.
</P>
1463 <H2 CLASS=
"title"><A NAME=
"ImplicitClasses">ImplicitClasses
</A></H2>
1467 <PRE CLASS=
"command">
1472 <H3>Description
</H3>
1474 <P>The
<CODE>ImplicitClasses
</CODE> directive controls whether
1475 implicit classes are created based upon the available network
1476 printers and classes. The default setting is
1477 <CODE>@CUPS_IMPLICIT_CLASSES@
</CODE> but is automatically turned
1478 <CODE>Off
</CODE> if
<A HREF=
"#Browsing"><CODE>Browsing
</CODE></A> is turned
1479 <CODE>Off
</CODE>.
</P>
1482 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.9</SPAN><A NAME=
"Include">Include
</A></H2>
1486 <PRE CLASS=
"command">
1488 Include /foo/bar/filename
1491 <H3>Description
</H3>
1493 <P>The
<CODE>Include
</CODE> directive includes the named file in
1494 the
<CODE>cupsd.conf
</CODE> file. If no leading path is provided,
1495 the file is assumed to be relative to the
<A
1496 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory.
</P>
1499 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"JobRetryInterval">JobRetryInterval
</A></H2>
1503 <PRE CLASS=
"command">
1505 JobRetryInterval
120
1508 <H3>Description
</H3>
1510 <P>The
<CODE>JobRetryInterval
</CODE> directive specifies the
1511 number of seconds to wait before retrying a job. This is
1512 typically used for fax queues but can also be used with normal
1513 print queues whose error policy is
<CODE>retry-job
</CODE>. The
1514 default is
30 seconds.
</P>
1517 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/Mac OS X
10.6</SPAN><A NAME=
"JobKillDelay">JobKillDelay
</A></H2>
1521 <PRE CLASS=
"command">
1526 <H3>Description
</H3>
1528 <P>The
<CODE>JobKillDelay
</CODE> directive specifies the number of seconds to
1529 wait before killing the filters and backend associated with a canceled or held
1530 job. The default is
30 seconds.
</P>
1533 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"JobRetryLimit">JobRetryLimit
</A></H2>
1537 <PRE CLASS=
"command">
1542 <H3>Description
</H3>
1544 <P>The
<CODE>JobRetryLimit
</CODE> directive specifies the maximum
1545 number of times the scheduler will try to print a job. This is
1546 typically used for fax queues but can also be used with normal
1547 print queues whose error policy is
<CODE>retry-job
</CODE>. The
1548 default is
5 times.
</P>
1551 <H2 CLASS=
"title"><A NAME=
"KeepAlive">KeepAlive
</A></H2>
1555 <PRE CLASS=
"command">
1560 <H3>Description
</H3>
1562 <P>The
<CODE>KeepAlive
</CODE> directive controls whether or not
1563 to support persistent HTTP connections. The default is
1564 <CODE>On
</CODE>.
</P>
1566 <P>HTTP/
1.1 clients automatically support persistent connections,
1567 while HTTP/
1.0 clients must specifically request them using the
1568 <CODE>Keep-Alive
</CODE> attribute in the
<CODE>Connection:
</CODE>
1569 field of each request.
</P>
1572 <H2 CLASS=
"title"><A NAME=
"KeepAliveTimeout">KeepAliveTimeout
</A></H2>
1576 <PRE CLASS=
"command">
1581 <H3>Description
</H3>
1583 <P>The
<CODE>KeepAliveTimeout
</CODE> directive controls how long
1584 a persistent HTTP connection will remain open after the last
1585 request. The default is
30 seconds.
</P>
1588 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Limit">Limit (Location)
</A></H2>
1592 <PRE CLASS=
"command">
1593 <Location /path
>
1594 <Limit GET POST
>
1604 <H3>Description
</H3>
1606 <P>The
<CODE>Limit
</CODE> directive groups access control
1607 directives for specific types of HTTP requests and must appear
1608 inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> section.
1609 Access can be limited for individual request types
1610 (
<CODE>DELETE
</CODE>,
<CODE>GET
</CODE>,
<CODE>HEAD
</CODE>,
1611 <CODE>OPTIONS
</CODE>,
<CODE>POST
</CODE>,
<CODE>PUT
</CODE>, and
1612 <CODE>TRACE
</CODE>) or for all request types (
<CODE>ALL
</CODE>).
1613 The request type names are case-sensitive for compatibility with
1617 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"LimitIPP">Limit (Policy)
</A></H2>
1621 <PRE CLASS=
"command">
1623 <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
>
1633 <H3>Description
</H3>
1635 <P>When included in
<A HREF=
"#Policy"><CODE>Policy
</CODE></A>
1636 sections, the
<CODE>Limit
</CODE> directive groups access control
1637 directives for specific IPP operations. Multiple operations can
1638 be listed, separated by spaces. Table
2 lists the supported
1641 <DIV CLASS=
"table"><TABLE SUMMARY=
"Supported IPP Operations">
1642 <CAPTION>Table
2:
<A NAME=
"TABLE2">Supported IPP Operations
</A></CAPTION>
1645 <TH>Operation Name
</TH>
1646 <TH>Description
</TH>
1652 <TD>All operations - used as the default limit for
1653 operations that are not listed
</TD>
1657 <TD>Cancel a job
</TD>
1660 <TD>Cancel-Subscription
</TD>
1661 <TD>Cancel a subscription
</TD>
1665 <TD>Create a new, empty job
</TD>
1668 <TD>Create-Job-Subscription
</TD>
1669 <TD>Creates a notification subscription on a job
</TD>
1672 <TD>Create-Printer-Subscription
</TD>
1673 <TD>Creates a notification subscription on a printer
</TD>
1676 <TD>CUPS-Accept-Jobs
</TD>
1677 <TD>Sets the printer-is-accepting-jobs value for a printer to true
</TD>
1680 <TD>CUPS-Add-Modify-Class
</TD>
1681 <TD>Adds or modifies a class
</TD>
1684 <TD>CUPS-Add-Modify-Printer
</TD>
1685 <TD>Adds or modifies a printer
</TD>
1688 <TD>CUPS-Authenticate-Job
</TD>
1689 <TD>Authenticates a job for printing
</TD>
1692 <TD>CUPS-Delete-Class
</TD>
1693 <TD>Deletes a class
</TD>
1696 <TD>CUPS-Delete-Printer
</TD>
1697 <TD>Deletes a printer
</TD>
1700 <TD>CUPS-Get-Classes
</TD>
1701 <TD>Gets a list of classes
</TD>
1704 <TD>CUPS-Get-Default
</TD>
1705 <TD>Gets the (network/server) default printer or class
</TD>
1708 <TD>CUPS-Get-Devices
</TD>
1709 <TD>Gets a list of available devices
</TD>
1712 <TD>CUPS-Get-PPDs
</TD>
1713 <TD>Gets a list of available manufacturers or drivers
</TD>
1716 <TD>CUPS-Get-Printers
</TD>
1717 <TD>Gets a list of printers and/or classes
</TD>
1720 <TD>CUPS-Move-Job
</TD>
1721 <TD>Moves a job to a new destination
</TD>
1724 <TD>CUPS-Reject-Jobs
</TD>
1725 <TD>Sets the printer-is-accepting-jobs value for a printer to false
</TD>
1728 <TD>CUPS-Set-Default
</TD>
1729 <TD>Sets the network/server default printer or class
</TD>
1732 <TD>Disable-Printer
</TD>
1733 <TD>Sets the printer-state value for a printer to stopped
</TD>
1736 <TD>Enable-Printer
</TD>
1737 <TD>Sets the printer-state value for a printer to idle/processing
</TD>
1740 <TD>Get-Job-Attributes
</TD>
1741 <TD>Gets information about a job
</TD>
1745 <TD>Gets a list of jobs
</TD>
1748 <TD>Get-Notifications
</TD>
1749 <TD>Gets a list of events
</TD>
1752 <TD>Get-Printer-Attributes
</TD>
1753 <TD>Gets informaion about a printer or class
</TD>
1756 <TD>Get-Subscription-Attributes
</TD>
1757 <TD>Gets informaion about a notification subscription
</TD>
1760 <TD>Get-Subscriptions
</TD>
1761 <TD>Gets a list of notification subscriptions
</TD>
1765 <TD>Holds a job for printing
</TD>
1768 <TD>Pause-Printer
</TD>
1769 <TD>Sets the printer-state value for a printer to stopped
</TD>
1773 <TD>Creates a job with a single file for printing
</TD>
1777 <TD>Removes all jobs from a printer
</TD>
1780 <TD>Release-Job
</TD>
1781 <TD>Releases a previously held job for printing
</TD>
1784 <TD>Renew-Subscription
</TD>
1785 <TD>Renews a notification subscription
</TD>
1788 <TD>Restart-Job
</TD>
1789 <TD>Reprints a job
</TD>
1792 <TD>Resume-Printer
</TD>
1793 <TD>Sets the printer-stae value for a printer to idle/processing
</TD>
1796 <TD>Send-Document
</TD>
1797 <TD>Adds a file to an job created with Create-Job
</TD>
1800 <TD>Set-Job-Attributes
</TD>
1801 <TD>Changes job options
</TD>
1804 <TD>Validate-Job
</TD>
1805 <TD>Validates job options prior to printing
</TD>
1811 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"LimitExcept">LimitExcept
</A></H2>
1815 <PRE CLASS=
"command">
1816 <Location /path
>
1817 <LimitExcept GET POST
>
1819 </LimitExcept
>
1823 <H3>Description
</H3>
1825 <P>The
<CODE>LimitExcept
</CODE> directive groups access control
1826 directives for specific types of HTTP requests and must appear
1827 inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> section.
1828 Unlike the
<A HREF=
"#Limit"><CODE>Limit
</CODE></A> directive,
1829 <CODE>LimitExcept
</CODE> restricts access for all requests
1830 <I>except
</I> those listed on the
<CODE>LimitExcept
</CODE>
1834 <H2 CLASS=
"title"><A NAME=
"LimitRequestBody">LimitRequestBody
</A></H2>
1838 <PRE CLASS=
"command">
1839 LimitRequestBody
10485760
1840 LimitRequestBody
10m
1844 <H3>Description
</H3>
1846 <P>The
<CODE>LimitRequestBody
</CODE> directive controls the
1847 maximum size of print files, IPP requests, and HTML form data in
1848 HTTP POST requests. The default limit is
0 which disables the
1852 <H2 CLASS=
"title"><A NAME=
"Listen">Listen
</A></H2>
1856 <PRE CLASS=
"command">
1857 Listen
127.0.0.1:
631
1858 Listen
192.0.2.1:
631
1863 <H3>Description
</H3>
1865 <P>The
<CODE>Listen
</CODE> directive specifies a network address
1866 and port to listen for connections. Multiple
<CODE>Listen
</CODE>
1867 directives can be provided to listen on multiple addresses.
</P>
1869 <P>The
<CODE>Listen
</CODE> directive is similar to the
<A
1870 HREF=
"#Port"><CODE>Port
</CODE></A> directive but allows you to
1871 restrict access to specific interfaces or networks.
</P>
1874 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"ListenBackLog">ListenBackLog
</A></H2>
1878 <PRE CLASS=
"command">
1883 <H3>Description
</H3>
1885 <P>The
<CODE>ListenBackLog
</CODE> directive sets the maximum
1886 number of pending connections the scheduler will allow. This
1887 normally only affects very busy servers that have reached the
<A
1888 HREF=
"#MaxClients"><CODE>MaxClients
</CODE></A> limit, but can
1889 also be triggered by large numbers of simultaneous connections.
1890 When the limit is reached, the operating system will refuse
1891 additional connections until the scheduler can accept the pending
1892 ones. The default is the OS-defined default limit, typically
1893 either
5 for older operating systems or
128 for newer operating
1897 <H2 CLASS=
"title"><A NAME=
"Location">Location
</A></H2>
1901 <PRE CLASS=
"command">
1906 <Location /admin
>
1910 <Location /admin/conf
>
1914 <Location /admin/log
>
1918 <Location /classes
>
1922 <Location /classes/name
>
1926 <Location /jobs
>
1930 <Location /printers
>
1934 <Location /printers/name
>
1940 <H3>Description
</H3>
1942 <P>The
<CODE>Location
</CODE> directive specifies access control
1943 and authentication options for the specified HTTP resource or
1944 path. The
<A HREF=
"#Allow"><CODE>Allow
</CODE></A>,
<A
1945 HREF=
"#AuthType"><CODE>AuthType
</CODE></A>,
<A
1946 HREF=
"#Deny"><CODE>Deny
</CODE></A>,
<A
1947 HREF=
"#Encryption"><CODE>Encryption
</CODE></A>,
<A
1948 HREF=
"#Limit"><CODE>Limit
</CODE></A>,
<A
1949 HREF=
"#LimitExcept"><CODE>LimitExcept
</CODE></A>,
<A
1950 HREF=
"#Order"><CODE>Order
</CODE></A>,
<A
1951 HREF=
"#Require"><CODE>Require
</CODE></A>, and
<A
1952 HREF=
"#Satisfy"><CODE>Satisfy
</CODE></A> directives may all
1953 appear inside a location.
</P>
1955 <P>Note that more specific resources override the less specific
1956 ones. So the directives inside the
<CODE>/printers/name
</CODE>
1957 location will override ones from
<CODE>/printers
</CODE>.
1958 Directives inside
<CODE>/printers
</CODE> will override ones from
1959 <CODE>/
</CODE>. None of the directives are inherited.
</P>
1961 <DIV CLASS=
"table"><TABLE SUMMARY=
"Common Locations on the Server">
1962 <CAPTION>Table
3:
<A NAME=
"TABLE3">Common Locations on the Server
</A></CAPTION>
1964 <TR><TH>Location
</TH><TH>Description
</TH></TR>
1967 <TR><TD><CODE>/
</CODE></TD><TD>The path for all get operations (get-printers, get-jobs, etc.)
</TD></TR>
1968 <TR><TD><CODE>/admin
</CODE></TD><TD>The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
</TD></TR>
1969 <TR><TD><CODE>/admin/conf
</CODE></TD><TD>The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
</TD></TR>
1970 <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>
1971 <TR><TD><CODE>/classes
</CODE></TD><TD>The path for all classes
</TD></TR>
1972 <TR><TD><CODE>/classes/name
</CODE></TD><TD>The resource for class
<CODE>name
</CODE></TD></TR>
1973 <TR><TD><CODE>/jobs
</CODE></TD><TD>The path for all jobs (hold-job, release-job, etc.)
</TD></TR>
1974 <TR><TD><CODE>/jobs/id
</CODE></TD><TD>The resource for job
<CODE>id
</CODE></TD></TR>
1975 <TR><TD><CODE>/printers
</CODE></TD><TD>The path for all printers
</TD></TR>
1976 <TR><TD><CODE>/printers/name
</CODE></TD><TD>The path for printer
<CODE>name
</CODE></TD></TR>
1977 <TR><TD><CODE>/printers/name.ppd
</CODE></TD><TD>The PPD file path for printer
<CODE>name
</CODE></TD></TR>
1982 <H2 CLASS=
"title"><A NAME=
"LogDebugHistory">LogDebugHistory
</A></H2>
1986 <PRE CLASS=
"command">
1991 <H3>Description
</H3>
1993 <P>When
<A HREF=
"#LogLevel"><CODE>LogLevel
</CODE></A> is not set to
1994 <CODE>debug
</CODE> or
<CODE>debug2
</CODE>, the
<CODE>LogDebugHistory
</CODE>
1995 directive specifies the number of debugging messages that are logged when an
1996 error occurs during printing. The default is
200 messages. A value of
0
1997 disables debugging history entirely and is not recommended.
</P>
2000 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.15</SPAN><A NAME=
"LogFilePerm">LogFilePerm
</A></H2>
2004 <PRE CLASS=
"command">
2009 <H3>Description
</H3>
2011 <P>The
<CODE>LogFilePerm
</CODE> directive specifies the
2012 permissions to use when writing configuration files. The default
2013 is @CUPS_LOG_FILE_PERM@.
</P>
2016 <H2 CLASS=
"title"><A NAME=
"LogLevel">LogLevel
</A></H2>
2020 <PRE CLASS=
"command">
2033 <H3>Description
</H3>
2035 <P>The
<CODE>LogLevel
</CODE> directive specifies the level of
2036 logging for the
<A HREF=
"#ErrorLog"><CODE>ErrorLog
</CODE></A>
2037 file. The following values are recognized (each level logs
2038 everything under the preceding levels):
</P>
2042 <LI><CODE>none
</CODE> - Log nothing
</LI>
2044 <LI><CODE>emerg
</CODE> - Log emergency conditions that
2045 prevent the server from running
</LI>
2047 <LI><CODE>alert
</CODE> - Log alerts that must be handled
2050 <LI><CODE>crit
</CODE> - Log critical errors that don't
2051 prevent the server from running
</LI>
2053 <LI><CODE>error
</CODE> - Log general errors
</LI>
2055 <LI><CODE>warn
</CODE> - Log errors and warnings
</LI>
2057 <LI><CODE>notice
</CODE> - Log temporary error conditions
</LI>
2059 <LI><CODE>info
</CODE> - Log all requests and state
2062 <LI><CODE>debug
</CODE> - Log basic debugging
2065 <LI><CODE>debug2
</CODE> - Log all debugging
2070 <p>The default
<code>LogLevel
</code> is
<code>@CUPS_LOG_LEVEL@
</code>.
</p>
2073 <H2 CLASS=
"title"><A NAME=
"LogTimeFormat">LogTimeFormat
</A></H2>
2077 <PRE CLASS=
"command">
2078 LogTimeFormat standard
2082 <H3>Description
</H3>
2084 <P>The
<CODE>LogTimeFormat
</CODE> directive specifies the format used for the
2085 date and time in the log files.
<CODE>Standard
</CODE> uses the standard Apache
2086 Common Log Format date and time while
<CODE>usecs
</CODE> adds microseconds.
2087 The default is
<CODE>standard
</CODE>.
</P>
2090 <H2 CLASS=
"title"><A NAME=
"MaxClients">MaxClients
</A></H2>
2094 <PRE CLASS=
"command">
2099 <H3>Description
</H3>
2101 <P>The
<CODE>MaxClients
</CODE> directive controls the maximum
2102 number of simultaneous clients that will be allowed by the
2103 server. The default is
100 clients.
</P>
2105 <BLOCKQUOTE><B>Note:
</B>
2107 <P>Since each print job requires a file descriptor for the status
2108 pipe, the scheduler internally limits the
<CODE>MaxClients
</CODE>
2109 value to
1/
3 of the available file descriptors to avoid possible
2110 problems when printing large numbers of jobs.
</P>
2115 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.18</SPAN><A NAME=
"MaxClientsPerHost">MaxClientsPerHost
</A></H2>
2119 <PRE CLASS=
"command">
2120 MaxClientsPerHost
10
2123 <H3>Description
</H3>
2125 <P>The
<CODE>MaxClientsPerHost
</CODE> directive controls the
2126 maximum number of simultaneous clients that will be allowed from
2127 a single host by the server. The default is the
2128 <CODE>MaxClients
</CODE> value.
</P>
2130 <P>This directive provides a small measure of protection against
2131 Denial of Service attacks from a single host.
</P>
2134 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.16</SPAN><A NAME=
"MaxCopies">MaxCopies
</A></H2>
2138 <PRE CLASS=
"command">
2143 <H3>Description
</H3>
2145 <P>The
<CODE>MaxCopies
</CODE> directive controls the maximum
2146 number of copies that a user can print of a job. The default is
2147 @CUPS_MAX_COPIES@ copies.
</P>
2149 <BLOCKQUOTE><B>Note:
</B>
2151 <P>Most HP PCL laser printers internally limit the number of
2158 <H2 CLASS=
"title"><A NAME=
"MaxJobs">MaxJobs
</A></H2>
2162 <PRE CLASS=
"command">
2168 <H3>Description
</H3>
2170 <P>The
<CODE>MaxJobs
</CODE> directive controls the maximum number
2171 of jobs that are kept in memory. Once the number of jobs reaches
2172 the limit, the oldest completed job is automatically purged from
2173 the system to make room for the new one. If all of the known jobs
2174 are still pending or active then the new job will be
2177 <P>Setting the maximum size to
0 disables this functionality. The
2178 default setting is
500.
</P>
2181 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"MaxJobsPerPrinter">MaxJobsPerPrinter
</A></H2>
2185 <PRE CLASS=
"command">
2186 MaxJobsPerPrinter
100
2187 MaxJobsPerPrinter
9999
2191 <H3>Description
</H3>
2193 <P>The
<CODE>MaxJobsPerPrinter
</CODE> directive controls the
2194 maximum number of active jobs that are allowed for each printer
2195 or class. Once a printer or class reaches the limit, new jobs
2196 will be rejected until one of the active jobs is completed,
2197 stopped, aborted, or canceled.
</P>
2199 <P>Setting the maximum to
0 disables this functionality. The
2200 default setting is
0.
</P>
2203 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"MaxJobsPerUser">MaxJobsPerUser
</A></H2>
2207 <PRE CLASS=
"command">
2213 <H3>Description
</H3>
2215 <P>The
<CODE>MaxJobsPerUser
</CODE> directive controls the maximum
2216 number of active jobs that are allowed for each user. Once a user
2217 reaches the limit, new jobs will be rejected until one of the
2218 active jobs is completed, stopped, aborted, or canceled.
</P>
2220 <P>Setting the maximum to
0 disables this functionality. The
2221 default setting is
0.
</P>
2224 <H2 CLASS=
"title"><A NAME=
"MaxLogSize">MaxLogSize
</A></H2>
2228 <PRE CLASS=
"command">
2234 <H3>Description
</H3>
2236 <P>The
<CODE>MaxLogSize
</CODE> directive controls the maximum
2237 size of each log file. Once a log file reaches or exceeds the
2238 maximum size it is closed and renamed to
<VAR>filename.O
</VAR>.
2239 This allows you to rotate the logs automatically. The default
2240 size is
1048576 bytes (
1MB).
</P>
2242 <P>Setting the maximum size to
0 disables log rotation.
</P>
2245 <H2 CLASS=
"title"><SPAN CLASS=
"info">Deprecated
</SPAN><A NAME=
"MaxRequestSize">MaxRequestSize
</A></H2>
2249 <PRE CLASS=
"command">
2250 MaxRequestSize
10485760
2255 <H3>Description
</H3>
2257 <P>The
<CODE>MaxRequestSize
</CODE> directive controls the maximum
2258 size of print files, IPP requests, and HTML form data in HTTP
2259 POST requests. The default limit is
0 which disables the limit
2262 <P><B>This directive is deprecated and will be removed in a
2263 future CUPS release.
</B> Use the
<A
2264 HREF=
"#LimitRequestBody"><CODE>LimitRequestBody
</CODE></A>
2265 directive instead.
</P>
2268 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/Mac OS X
10.6</SPAN><A NAME=
"MultipleOperationTimeout">MultipleOperationTimeout
</A></H2>
2272 <PRE CLASS=
"command">
2273 MultipleOperationTimeout
60
2274 MultipleOperationTimeout
300
2275 MultipleOperationTimeout
86400
2278 <H3>Description
</H3>
2280 <P>The
<CODE>MultipleOperationTimeout
</CODE> directive sets the maximum amount
2281 of time between files in a multi-file print job. The default is
300 seconds.
</P>
2284 <H2 CLASS=
"title"><A NAME=
"Order">Order
</A></H2>
2288 <PRE CLASS=
"command">
2289 <Location /path
>
2296 <H3>Description
</H3>
2298 <P>The
<CODE>Order
</CODE> directive defines the default access
2299 control. The following values are supported:
</P>
2303 <LI><CODE>allow,deny
</CODE> - Deny requests by default,
2304 then check the
<A HREF=
"#Allow"><CODE>Allow
</CODE></A>
2305 lines followed by the
<A
2306 HREF=
"#Deny"><CODE>Deny
</CODE></A> lines
</LI>
2308 <LI><CODE>deny,allow
</CODE> - Allow requests by default,
2309 then check the
<A HREF=
"#Deny"><CODE>Deny
</CODE></A>
2310 lines followed by the
<A
2311 HREF=
"#Allow"><CODE>Allow
</CODE></A> lines
</LI>
2315 <P>The
<CODE>Order
</CODE> directive must appear inside a
<A
2316 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
2317 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
2320 <H2 CLASS=
"title"><A NAME=
"PageLog">PageLog
</A></H2>
2324 <PRE CLASS=
"command">
2325 PageLog /var/log/cups/page_log
2326 PageLog /var/log/cups/page_log-%s
2330 <H3>Description
</H3>
2332 <P>The
<CODE>PageLog
</CODE> directive sets the name of the page
2333 log file. If the filename is not absolute then it is assumed to
2334 be relative to the
<A
2335 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory. The
2336 default page log file is
<VAR>@CUPS_LOGDIR@/page_log
</VAR>.
</P>
2338 <P>The server name can be included in the filename by using
2339 <CODE>%s
</CODE> in the name.
</P>
2341 <P>The special name
"syslog" can be used to send the page
2342 information to the system log instead of a plain file.
</P>
2345 <H2 CLASS=
"title"><A NAME=
"PageLogFormat">PageLogFormat
</A></H2>
2349 <PRE CLASS=
"command">
2350 PageLogFormat %p %j %u %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}
2351 PageLogFormat PAGE %p %j %u %P %C %{job-billing} %{job-originating-host-name}
2354 <H3>Description
</H3>
2356 <P>The
<CODE>PageLogFormat
</CODE> directive sets the format of lines
2357 that are logged to the page log file. Sequences beginning with percent (%)
2358 characters are replaced with the corresponding information, while all other
2359 characters are copied literally. The following percent sequences are
2364 <LI><CODE>%%
</CODE>: Inserts a single percent character.
</LI>
2366 <LI><CODE>%{name}
</CODE>: Inserts the value of the specified IPP
2369 <LI><CODE>%C
</CODE>: Inserts the number of copies for the current page.
</LI>
2371 <LI><CODE>%P
</CODE>: Inserts the current page number.
</LI>
2373 <LI><CODE>%T
</CODE>: Inserts the current date and time in common log
2376 <LI><CODE>%j
</CODE>: Inserts the job ID.
</LI>
2378 <LI><CODE>%p
</CODE>: Inserts the printer name.
</LI>
2380 <LI><CODE>%u
</CODE>: Inserts the username.
</LI>
2384 <P>The default is
"%p %j %u %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}".
</P>
2387 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"PassEnv">PassEnv
</A></H2>
2391 <PRE CLASS=
"command">
2392 PassEnv MY_ENV_VARIABLE
2395 <H3>Description
</H3>
2397 <P>The
<CODE>PassEnv
</CODE> directive specifies an environment
2398 variable that should be passed to child processes. Normally, the
2399 scheduler only passes the
<CODE>DYLD_LIBRARY_PATH
</CODE>,
2400 <CODE>LD_ASSUME_KERNEL
</CODE>,
<CODE>LD_LIBRARY_PATH
</CODE>,
2401 <CODE>LD_PRELOAD
</CODE>,
<CODE>NLSPATH
</CODE>,
2402 <CODE>SHLIB_PATH
</CODE>,
<CODE>TZ
</CODE>, and
<CODE>VGARGS
</CODE>
2403 environment variables to child processes.
</P>
2406 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"Policy">Policy
</A></H2>
2410 <PRE CLASS=
"command">
2412 <Limit operation ... operation
>
2415 <Limit operation ... operation
>
2424 <H3>Description
</H3>
2426 <P>The
<CODE>Policy
</CODE> directive specifies IPP operation
2427 access control limits. Each policy contains
1 or more
<A
2428 HREF=
"#LimitIPP"><CODE>Limit
</CODE></A> sections to set the
2429 access control limits for specific operations - user limits,
2430 authentication, encryption, and allowed/denied addresses,
2431 domains, or hosts. The
<CODE><Limit All
></CODE> section
2432 specifies the default access control limits for operations that
2435 <P>Policies are named and associated with printers via the
2436 printer's operation policy setting
2437 (
<CODE>printer-op-policy
</CODE>). The default policy for the
2438 scheduler is specified using the
<A
2439 HREF=
"#DefaultPolicy"><CODE>DefaultPolicy
</CODE></A>
2443 <H2 CLASS=
"title"><A NAME=
"Port">Port
</A></H2>
2447 <PRE CLASS=
"command">
2452 <H3>Description
</H3>
2454 <P>The
<CODE>Port
</CODE> directive specifies a port to listen on.
2455 Multiple
<CODE>Port
</CODE> lines can be specified to listen on
2456 multiple ports. The
<CODE>Port
</CODE> directive is equivalent to
2457 "<CODE>Listen *:nnn</CODE>". The default port is
631.
</P>
2459 <BLOCKQUOTE><B>Note:
</B>
2461 <P>On systems that support IPv6, this directive will bind to both
2462 the IPv4 and IPv6 wildcard address.
</P>
2467 <H2 CLASS=
"title"><A NAME=
"PreserveJobHistory">PreserveJobHistory
</A></H2>
2471 <PRE CLASS=
"command">
2472 PreserveJobHistory On
2473 PreserveJobHistory Off
2476 <H3>Description
</H3>
2478 <P>The
<CODE>PreserveJobHistory
</CODE> directive controls whether
2479 the history of completed, canceled, or aborted print jobs is
2482 <P>A value of
<CODE>On
</CODE> (the default) preserves job
2483 information until the administrator purges it with the
2484 <CODE>cancel
</CODE> command.
</P>
2486 <P>A value of
<CODE>Off
</CODE> removes the job information as
2487 soon as each job is completed, canceled, or aborted.
</P>
2490 <H2 CLASS=
"title"><A NAME=
"PreserveJobFiles">PreserveJobFiles
</A></H2>
2494 <PRE CLASS=
"command">
2496 PreserveJobFiles Off
2499 <H3>Description
</H3>
2501 <P>The
<CODE>PreserveJobFiles
</CODE> directive controls whether
2502 the document files of completed, canceled, or aborted print jobs
2503 are stored on disk.
</P>
2505 <P>A value of
<CODE>On
</CODE> preserves job files until the
2506 administrator purges them with the
<CODE>cancel
</CODE> command.
2507 Jobs can be restarted (and reprinted) as desired until they are
2510 <P>A value of
<CODE>Off
</CODE> (the default) removes the job
2511 files as soon as each job is completed, canceled, or aborted.
</P>
2514 <H2 CLASS=
"title"><A NAME=
"Printcap">Printcap
</A></H2>
2518 <PRE CLASS=
"command">
2520 Printcap /etc/printcap
2521 Printcap /etc/printers.conf
2522 Printcap /Library/Preferences/org.cups.printers.plist
2525 <H3>Description
</H3>
2527 <P>The
<CODE>Printcap
</CODE> directive controls whether or not a
2528 printcap file is automatically generated and updated with a list
2529 of available printers. If specified with no value, then no
2530 printcap file will be generated. The default is to generate a
2531 file named
<VAR>@CUPS_DEFAUL_PRINTCAP@
</VAR>.
</P>
2533 <P>When a filename is specified (e.g.
<VAR>@CUPS_DEFAULT_PRINTCAP@
</VAR>),
2534 the printcap file is written whenever a printer is added or
2535 removed. The printcap file can then be used by applications that
2536 are hardcoded to look at the printcap file for the available
2540 <H2 CLASS=
"title"><A NAME=
"PrintcapFormat">PrintcapFormat
</A></H2>
2544 <PRE CLASS=
"command">
2546 PrintcapFormat Solaris
2547 PrintcapFormat plist
2550 <H3>Description
</H3>
2552 <P>The
<CODE>PrintcapFormat
</CODE> directive controls the output format of the
2553 printcap file. The default is to generate the plist format on Mac OS X, the
2554 Solaris format on Solaris, and the BSD format on other operating systems.
</P>
2557 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.13</SPAN><A NAME=
"PrintcapGUI">PrintcapGUI
</A></H2>
2561 <PRE CLASS=
"command">
2562 PrintGUI /usr/bin/glpoptions
2565 <H3>Description
</H3>
2567 <P>The
<CODE>PrintcapGUI
</CODE> directive sets the program to
2568 associate with the IRIX printer GUI interface script which is
2569 used by IRIX applications to display printer-specific options.
2570 There is no default program.
</P>
2573 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.21</SPAN><A NAME=
"ReloadTimeout">ReloadTimeout
</A></H2>
2577 <PRE CLASS=
"command">
2582 <H3>Description
</H3>
2584 <P>The
<CODE>ReloadTimeout
</CODE> directive specifies the number
2585 of seconds the scheduler will wait for active jobs to complete
2586 before doing a restart. The default is
30 seconds.
</P>
2589 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.3</SPAN><A NAME=
"RemoteRoot">RemoteRoot
</A></H2>
2593 <PRE CLASS=
"command">
2598 <H3>Description
</H3>
2600 <P>The
<CODE>RemoteRoot
</CODE> directive sets the username for
2601 unauthenticated root requests from remote hosts. The default
2602 username is
<VAR>remroot
</VAR>. Setting
<CODE>RemoteRoot
</CODE>
2603 to
<VAR>root
</VAR> effectively disables this security
2607 <H2 CLASS=
"title"><A NAME=
"RequestRoot">RequestRoot
</A></H2>
2611 <PRE CLASS=
"command">
2612 RequestRoot /var/spool/cups
2613 RequestRoot /foo/bar/spool/cups
2616 <H3>Description
</H3>
2618 <P>The
<CODE>RequestRoot
</CODE> directive sets the directory for
2619 incoming IPP requests and HTML forms. If an absolute path is not
2620 provided then it is assumed to be relative to the
<A
2621 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory. The
2622 default request directory is
<VAR>@CUPS_REQUESTS@
</VAR>.
</P>
2625 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Require">Require
</A></H2>
2629 <PRE CLASS=
"command">
2630 <Location /path
>
2632 Require group foo bar
2633 Require user john mary
2635 Require user @groupname
2636 Require user @SYSTEM
2641 <H3>Description
</H3>
2643 <P>The
<CODE>Require
</CODE> directive specifies that
2644 authentication is required for the resource. The
2645 <CODE>group
</CODE> keyword specifies that the authenticated user
2646 must be a member of one or more of the named groups that
2649 <P>The
<CODE>user
</CODE> keyword specifies that the
2650 authenticated user must be one of the named users or groups that
2651 follow. Group names are specified using the
"@" prefix.
</P>
2653 <P>The
<CODE>valid-user
</CODE> keyword specifies that any
2654 authenticated user may access the resource.
</P>
2656 <P>The default is to do no authentication. This directive must
2657 appear inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> or
2658 <A HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
2661 <H2 CLASS=
"title"><A NAME=
"RIPCache">RIPCache
</A></H2>
2665 <PRE CLASS=
"command">
2671 <H3>Description
</H3>
2673 <P>The
<CODE>RIPCache
</CODE> directive sets the size of the
2674 memory cache used by Raster Image Processor (
"RIP") filters such
2675 as
<CODE>imagetoraster
</CODE> and
<CODE>pstoraster
</CODE>. The
2676 size can be suffixed with a
"k" for kilobytes,
"m" for megabytes,
2677 or
"g" for gigabytes. The default cache size is
"8m", or
8
2681 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.16</SPAN><A NAME=
"RootCertDuration">RootCertDuration
</A></H2>
2685 <PRE CLASS=
"command">
2687 RootCertDuration
300
2690 <H3>Description
</H3>
2692 <P>The
<CODE>RootCertDuration
</CODE> directive specifies the
2693 number of seconds the
<EM>root certificate
</EM> remains valid.
2694 The scheduler will generate a new certificate as needed when the
2695 number of seconds has expired. If set to
0, the root certificate
2696 is generated only once on startup or on a restart. The default is
2700 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Satisfy">Satisfy
</A></H2>
2704 <PRE CLASS=
"command">
2705 <Location /path
>
2712 <H3>Description
</H3>
2714 <P>The
<CODE>Satisfy
</CODE> directive specifies whether all
2715 conditions must be satisfied to allow access to the resource. If
2716 set to
<CODE>all
</CODE>, then all authentication and access
2717 control conditions must be satified to allow access.
</P>
2719 <P>Setting
<CODE>Satisfy
</CODE> to
<CODE>any
</CODE> allows a user
2720 to gain access if the authentication or access control
2721 requirements are satisfied. For example, you might require
2722 authentication for remote access, but allow local access without
2725 <P>The default is
<CODE>all
</CODE>. This directive must appear
2726 inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
2727 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
2730 <H2 CLASS=
"title"><A NAME=
"ServerAdmin">ServerAdmin
</A></H2>
2734 <PRE CLASS=
"command">
2735 ServerAdmin user@host
2736 ServerAdmin root@foo.bar.com
2739 <H3>Description
</H3>
2741 <P>The
<CODE>ServerAdmin
</CODE> directive identifies the email
2742 address for the administrator on the system. By default the
2743 administrator email address is
<CODE>root@server
</CODE>, where
2744 <CODE>server
</CODE> is the
<A
2745 HREF=
"#ServerName"><CODE>ServerName
</CODE></A>.
</P>
2748 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.3.10</SPAN><A NAME=
"ServerAlias">ServerAlias
</A></H2>
2752 <PRE CLASS=
"command">
2754 ServerAlias althost.foo.com
2755 ServerAlias althost.bar.com
2759 <H3>Description
</H3>
2761 <P>The
<CODE>ServerAlias
</CODE> directive specifies alternate names that the
2762 server is known by. By default it contains a list of all aliases associated
2763 with the
<A HREF=
"#ServerName"><CODE>ServerName
</CODE></A>. The special name
2764 "*" can be used to allow any hostname when accessing CUPS via an external
2765 network interfaces.
</P>
2767 <BLOCKQUOTE><B>Note
</B>
2769 <P>The
<CODE>ServerAlias
</CODE> directive is used for HTTP Host header
2770 validation when clients connect to the scheduler from external interfaces.
2771 Using the special name
"*" can expose your system to known browser-based
2772 DNS rebinding attacks, even when accessing sites through a firewall. If the
2773 auto-discovery of alternate names does not work, we recommend listing each
2774 alternate name with a ServerAlias directive instead of using
"*".
</P>
2779 <H2 CLASS=
"title"><A NAME=
"ServerBin">ServerBin
</A></H2>
2783 <PRE CLASS=
"command">
2784 ServerBin /usr/lib/cups
2785 ServerBin /foo/bar/lib/cups
2788 <H3>Description
</H3>
2790 <P>The
<CODE>ServerBin
</CODE> directive sets the directory for
2791 server-run executables. If an absolute path is not provided then
2792 it is assumed to be relative to the
<A
2793 HREF=
"#ServerRoot"><CODE>ServerRoot
</CODE></A> directory. The
2794 default executable directory is
<VAR>/usr/lib/cups
</VAR>,
2795 <VAR>/usr/lib32/cups
</VAR>, or
<VAR>/usr/libexec/cups
</VAR>
2796 depending on the operating system.
</P>
2799 <H2 CLASS=
"title"><A NAME=
"ServerCertificate">ServerCertificate
</A></H2>
2803 <PRE CLASS=
"command">
2804 ServerCertificate /etc/cups/ssl/server.crt
2807 <H3>Description
</H3>
2809 <P>The
<CODE>ServerCertificate
</CODE> directive specifies the
2810 location of the SSL certificate file used by the server when
2811 negotiating encrypted connections. The certificate must not be
2812 encrypted (password protected) since the scheduler normally runs
2813 in the background and will be unable to ask for a password.
</P>
2815 <P>The default certificate file is
2816 <VAR>/etc/cups/ssl/server.crt
</VAR>.
</P>
2819 <H2 CLASS=
"title"><A NAME=
"ServerKey">ServerKey
</A></H2>
2823 <PRE CLASS=
"command">
2824 ServerKey /etc/cups/ssl/server.key
2827 <H3>Description
</H3>
2829 <P>The
<CODE>ServerKey
</CODE> directive specifies the location of
2830 the SSL private key file used by the server when negotiating
2831 encrypted connections.
</P>
2833 <P>The default key file is
2834 <VAR>/etc/cups/ssl/server.crt
</VAR>.
</P>
2837 <H2 CLASS=
"title"><A NAME=
"ServerName">ServerName
</A></H2>
2841 <PRE CLASS=
"command">
2842 ServerName foo.domain.com
2843 ServerName myserver.domain.com
2846 <H3>Description
</H3>
2848 <P>The
<CODE>ServerName
</CODE> directive specifies the hostname
2849 that is reported to clients. By default the server name is the
2853 <H2 CLASS=
"title"><A NAME=
"ServerRoot">ServerRoot
</A></H2>
2857 <PRE CLASS=
"command">
2858 ServerRoot /etc/cups
2859 ServerRoot /foo/bar/cups
2862 <H3>Description
</H3>
2864 <P>The
<CODE>ServerRoot
</CODE> directive specifies the absolute
2865 path to the server configuration and state files. It is also used
2866 to resolve relative paths in the
<VAR>cupsd.conf
</VAR> file. The
2867 default server directory is
<VAR>/etc/cups
</VAR>.
</P>
2870 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.21</SPAN><A NAME=
"ServerTokens">ServerTokens
</A></H2>
2874 <PRE CLASS=
"command">
2876 ServerTokens ProductOnly
2879 ServerTokens Minimal
2884 <H3>Description
</H3>
2886 <P>The
<CODE>ServerTokens
</CODE> directive specifies the
2887 information that is included in the
<CODE>Server:
</CODE> header
2888 of all HTTP responses. Table
4 lists the token name along with
2889 the text that is returned. The default is
2890 <CODE>Minimal
</CODE>.
</P>
2892 <DIV CLASS=
"table"><TABLE SUMMARY=
"ServerToken Names and Values">
2893 <CAPTION>Table
4:
<A NAME=
"TABLE4">ServerToken Names and Values
</A></CAPTION>
2903 <TD>No
<CODE>Server:
</CODE> header is returned
</TD>
2906 <TD>ProductOnly
</TD>
2919 <TD>"CUPS 1.2.N" where N is the patch release
</TD>
2923 <TD>"CUPS 1.2.N (UNAME)" where N is the patch release and
2924 UNAME is the output of the
<B>uname(
1)
</B> command
</TD>
2928 <TD>"CUPS 1.2.N (UNAME) IPP/1.1" where N is the patch
2929 release and UNAME is the output of the
<B>uname(
1)
</B>
2936 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"SetEnv">SetEnv
</A></H2>
2940 <PRE CLASS=
"command">
2941 SetEnv PATH /usr/lib/cups/filter:/bin:/usr/bin:/usr/local/bin
2942 SetEnv MY_ENV_VAR foo
2945 <H3>Description
</H3>
2947 <P>The
<CODE>SetEnv
</CODE> directive specifies an environment
2948 variable that should be passed to child processes.
</P>
2951 <H2 CLASS=
"title"><A NAME=
"SSLOptions">SSLOptions
</A></H2>
2955 <PRE CLASS=
"command">
2956 SSLOptions
127.0.0.1:
443
2957 SSLOptions
192.0.2.1:
443
2960 <H3>Description
</H3>
2962 <P>The
<CODE>SSLOptions
</CODE> directive specifies a network
2963 address and port to listen for secure connections. Multiple
2964 <CODE>SSLOptions
</CODE> directives can be provided to listen on
2965 multiple addresses.
</P>
2967 <P>The
<CODE>SSLOptions
</CODE> directive is similar to the
<A
2968 HREF=
"#SSLPort"><CODE>SSLPort
</CODE></A> directive but allows you
2969 to restrict access to specific interfaces or networks.
</P>
2972 <H2 CLASS=
"title"><A NAME=
"SSLOptions">SSLOptions
</A></H2>
2976 <PRE CLASS=
"command">
2978 SSLOptions NoEmptyFragments
2981 <H3>Description
</H3>
2983 <P>The
<CODE>SSLOptions
</CODE> directive specifies additional SSL/TLS
2984 protocol options to use for encrypted connected. Currently only two
2985 options are supported -
<code>None
</code> (the default) for the most
2986 secure mode and
<code>NoEmptyFragments
</code> to allow CUPS to work with
2987 Microsoft Windows with the FIPS conformance mode enabled.
</p>
2990 <H2 CLASS=
"title"><A NAME=
"SSLPort">SSLPort
</A></H2>
2994 <PRE CLASS=
"command">
2998 <H3>Description
</H3>
3000 <P>The
<CODE>SSLPort
</CODE> directive specifies a port to listen
3001 on for secure connections. Multiple
<CODE>SSLPort
</CODE> lines
3002 can be specified to listen on multiple ports.
</P>
3005 <H2 CLASS=
"title"><A NAME=
"SystemGroup">SystemGroup
</A></H2>
3009 <PRE CLASS=
"command">
3014 SystemGroup root lpadmin
3017 <H3>Description
</H3>
3019 <P>The
<CODE>SystemGroup
</CODE> directive specifies the system
3020 administration group for
<CODE>System
</CODE> authentication.
3021 Multiple groups can be listed, separated with spaces. The default
3022 group list is
<CODE>@CUPS_SYSTEM_GROUPS@
</CODE>.
</P>
3025 <H2 CLASS=
"title"><A NAME=
"TempDir">TempDir
</A></H2>
3029 <PRE CLASS=
"command">
3031 TempDir /foo/bar/tmp
3034 <H3>Description
</H3>
3036 <P>The
<CODE>TempDir
</CODE> directive specifies an absolute path
3037 for the directory to use for temporary files. The default
3038 directory is
<VAR>@CUPS_REQUESTS@/tmp
</VAR>.
</P>
3040 <P>Temporary directories must be world-writable and should have
3041 the
"sticky" permission bit enabled so that other users cannot
3042 delete filter temporary files. The following commands will create
3043 an appropriate temporary directory called
3044 <VAR>/foo/bar/tmp
</VAR>:
</P>
3046 <PRE CLASS=
"command">
3047 <KBD>mkdir /foo/bar/tmp
</KBD>
3048 <KBD>chmod a+rwxt /foo/bar/tmp
</KBD>
3052 <H2 CLASS=
"title"><A NAME=
"Timeout">Timeout
</A></H2>
3056 <PRE CLASS=
"command">
3061 <H3>Description
</H3>
3063 <P>The
<CODE>Timeout
</CODE> directive controls the amount of time
3064 to wait before an active HTTP or IPP request times out. The
3065 default timeout is
300 seconds.
</P>
3068 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/Mac OS X
10.5</SPAN><A NAME=
"UseNetworkDefault">UseNetworkDefault
</A></H2>
3072 <PRE CLASS=
"command">
3073 UseNetworkDefault yes
3074 UseNetworkDefault no
3077 <H3>Description
</H3>
3079 <P>The
<CODE>UseNetworkDefault
</CODE> directive controls whether
3080 the client will use a network/remote printer as a default
3081 printer. If enabled, the default printer of a server is used as
3082 the default printer on a client. When multiple servers are
3083 advertising a default printer, the client's default printer is
3084 set to the first discovered printer, or to the implicit class for
3085 the same printer available from multiple servers.
</P>
3087 <P>The default is
<CODE>@CUPS_USE_NETWORK_DEFAULT@
</CODE>.
</P>
3090 <H2 CLASS=
"title"><A NAME=
"User">User
</A></H2>
3094 <PRE CLASS=
"command">
3099 <H3>Description
</H3>
3101 <P>The
<CODE>User
</CODE> directive specifies the UNIX user that
3102 filter and CGI programs run as. The default user is
3103 <CODE>@CUPS_USER@
</CODE>.
</P>
3105 <BLOCKQUOTE><B>Note:
</B>
3107 <P>You may not use user
<CODE>root
</CODE>, as that would expose
3108 the system to unacceptable security risks. The scheduler will
3109 automatically choose user
<CODE>nobody
</CODE> if you specify a
3110 user whose ID is
0.
</P>