• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML>
2<html>
3<!-- SECTION: Man Pages -->
4<head>
5	<link rel="stylesheet" type="text/css" href="../cups-printable.css">
6	<title>cupsd.conf(5)</title>
7</head>
8<body>
9<h1 class="title">cupsd.conf(5)</h1>
10<h2 class="title"><a name="NAME">Name</a></h2>
11cupsd.conf - server configuration file for cups
12<h2 class="title"><a name="DESCRIPTION">Description</a></h2>
13The
14<i>cupsd.conf</i>
15file configures the CUPS scheduler,
16<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8).</a>
17It is normally located in the
18<i>/etc/cups</i>
19directory.
20Each line in the file can be a configuration directive, a blank line, or a comment.
21Configuration directives typically consist of a name and zero or more values separated by whitespace.
22The configuration directive name and values are case-insensitive.
23Comment lines start with the # character.
24<h3><a name="TOP_LEVEL_DIRECTIVES">Top-level Directives</a></h3>
25The following top-level directives are understood by
26<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8):</a>
27<dl class="man">
28<dt><a name="AccessLogLevel"></a><b>AccessLogLevel config</b>
29<dd style="margin-left: 5.0em"><dt><b>AccessLogLevel actions</b>
30<dd style="margin-left: 5.0em"><dt><b>AccessLogLevel all</b>
31<dd style="margin-left: 5.0em">Specifies the logging level for the AccessLog file.
32The "config" level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated.
33The "actions" level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for "config".
34The "all" level logs all requests.
35The default access log level is "actions".
36<dt><a name="AutoPurgeJobs"></a><b>AutoPurgeJobs Yes</b>
37<dd style="margin-left: 5.0em"><dt><b>AutoPurgeJobs No</b>
38<dd style="margin-left: 5.0em"><br>
39Specifies whether to purge job history data automatically when it is no longer required for quotas.
40The default is "No".
41<dt><a name="BrowseDNSSDSubTypes"></a><b>BrowseDNSSDSubTypes</b><i>_subtype[,...]</i>
42<dd style="margin-left: 5.0em">Specifies a list of Bonjour sub-types to advertise for each shared printer.
43For example, "BrowseDNSSDSubTypes _cups,_print" will tell network clients that both CUPS sharing and IPP Everywhere are supported.
44The default is "_cups" which is necessary for printer sharing to work between systems using CUPS.
45<dt><a name="BrowseLocalProtocols"></a><b>BrowseLocalProtocols all</b>
46<dd style="margin-left: 5.0em"><dt><b>BrowseLocalProtocols dnssd</b>
47<dd style="margin-left: 5.0em"><dt><b>BrowseLocalProtocols none</b>
48<dd style="margin-left: 5.0em">Specifies which protocols to use for local printer sharing.
49The default is "dnssd" on systems that support Bonjour and "none" otherwise.
50<dt><a name="BrowseWebIF"></a><b>BrowseWebIF Yes</b>
51<dd style="margin-left: 5.0em"><dt><b>BrowseWebIF No</b>
52<dd style="margin-left: 5.0em"><br>
53Specifies whether the CUPS web interface is advertised.
54The default is "No".
55<dt><a name="Browsing"></a><b>Browsing Yes</b>
56<dd style="margin-left: 5.0em"><dt><b>Browsing No</b>
57<dd style="margin-left: 5.0em"><br>
58Specifies whether shared printers are advertised.
59The default is "No".
60<dt><a name="DefaultAuthType"></a><b>DefaultAuthType Basic</b>
61<dd style="margin-left: 5.0em"><br>
62Specifies the default type of authentication to use.
63The default is "Basic".
64<dt><a name="DefaultEncryption"></a><b>DefaultEncryption Never</b>
65<dd style="margin-left: 5.0em"><dt><b>DefaultEncryption IfRequested</b>
66<dd style="margin-left: 5.0em"><dt><b>DefaultEncryption Required</b>
67<dd style="margin-left: 5.0em">Specifies whether encryption will be used for authenticated requests.
68The default is "Required".
69<dt><a name="DefaultLanguage"></a><b>DefaultLanguage </b><i>locale</i>
70<dd style="margin-left: 5.0em">Specifies the default language to use for text and web content.
71The default is "en".
72<dt><a name="DefaultPaperSize"></a><b>DefaultPaperSize Auto</b>
73<dd style="margin-left: 5.0em"><dt><b>DefaultPaperSize None</b>
74<dd style="margin-left: 5.0em"><dt><b>DefaultPaperSize </b><i>sizename</i>
75<dd style="margin-left: 5.0em">Specifies the default paper size for new print queues. "Auto" uses a locale-specific default, while "None" specifies there is no default paper size.
76Specific size names are typically "Letter" or "A4".
77The default is "Auto".
78Note: The default paper size must use a size name from the PPD file and not a PWG self-describing media size name.
79<dt><a name="DefaultPolicy"></a><b>DefaultPolicy </b><i>policy-name</i>
80<dd style="margin-left: 5.0em">Specifies the default access policy to use.
81The default access policy is "default".
82<dt><a name="DefaultShared"></a><b>DefaultShared Yes</b>
83<dd style="margin-left: 5.0em"><dt><b>DefaultShared No</b>
84<dd style="margin-left: 5.0em">Specifies whether local printers are shared by default.
85The default is "Yes".
86<dt><a name="DirtyCleanInterval"></a><b>DirtyCleanInterval </b><i>seconds</i>
87<dd style="margin-left: 5.0em">Specifies the delay for updating of configuration and state files.
88A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds.
89The default value is "30".
90<dt><a name="DNSSDHostName"></a><b>DNSSDHostName</b><i>hostname.example.com</i>
91<dd style="margin-left: 5.0em">Specifies the fully-qualified domain name for the server that is used for Bonjour sharing.
92The default is typically the server's ".local" hostname.
93<dt><a name="ErrorPolicy"></a><b>ErrorPolicy abort-job</b>
94<dd style="margin-left: 5.0em">Specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer.
95<dt><b>ErrorPolicy retry-current-job</b>
96<dd style="margin-left: 5.0em">Specifies that a failed print job should be retried immediately unless otherwise specified for the printer.
97<dt><b>ErrorPolicy retry-job</b>
98<dd style="margin-left: 5.0em">Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.
99<dt><b>ErrorPolicy stop-printer</b>
100<dd style="margin-left: 5.0em">Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
101<dt><a name="FilterLimit"></a><b>FilterLimit </b><i>limit</i>
102<dd style="margin-left: 5.0em">Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems.
103A limit of 0 disables filter limiting.
104An average print to a non-PostScript printer needs a filter limit of about 200.
105A PostScript printer needs about half that (100).
106Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time.
107The default limit is "0".
108<dt><a name="FilterNice"></a><b>FilterNice </b><i>nice-value</i>
109<dd style="margin-left: 5.0em">Specifies the scheduling priority (
110<b>nice</b>(8)
111value) of filters that are run to print a job.
112The nice value ranges from 0, the highest priority, to 19, the lowest priority.
113The default is 0.
114<dt><b>HostNameLookups On</b>
115<dd style="margin-left: 5.0em"><dt><a name="HostNameLookups"></a><b>HostNameLookups Off</b>
116<dd style="margin-left: 5.0em"><dt><b>HostNameLookups Double</b>
117<dd style="margin-left: 5.0em">Specifies whether to do reverse lookups on connecting clients.
118The "Double" setting causes
119<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8)</a>
120to verify that the hostname resolved from the address matches one of the addresses returned for that hostname.
121Double lookups also prevent clients with unregistered addresses from connecting to your server.
122The default is "Off" to avoid the potential server performance problems with hostname lookups.
123Only set this option to "On" or "Double" if absolutely required.
124<dt><a name="IdleExitTimeout"></a><b>IdleExitTimeout </b><i>seconds</i>
125<dd style="margin-left: 5.0em">Specifies the length of time to wait before shutting down due to inactivity.
126The default is "60" seconds.
127Note: Only applicable when
128<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8)</a>
129is run on-demand (e.g., with <b>-l</b>).
130<dt><a name="JobKillDelay"></a><b>JobKillDelay </b><i>seconds</i>
131<dd style="margin-left: 5.0em">Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job.
132The default is "30".
133<dt><a name="JobRetryInterval"></a><b>JobRetryInterval </b><i>seconds</i>
134<dd style="margin-left: 5.0em">Specifies the interval between retries of jobs in seconds.
135This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job".
136The default is "30".
137<dt><a name="JobRetryLimit"></a><b>JobRetryLimit </b><i>count</i>
138<dd style="margin-left: 5.0em">Specifies the number of retries that are done for jobs.
139This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job".
140The default is "5".
141<dt><a name="KeepAlive"></a><b>KeepAlive Yes</b>
142<dd style="margin-left: 5.0em"><dt><b>KeepAlive No</b>
143<dd style="margin-left: 5.0em">Specifies whether to support HTTP keep-alive connections.
144The default is "Yes".
145<dt><a name="LimitIPP"></a><b>&lt;Limit </b><i>operation </i>...<b>> </b>... <b>&lt;/Limit></b>
146<dd style="margin-left: 5.0em">Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section "IPP OPERATION NAMES".
147<dt><a name="Limit"></a><b>&lt;Limit </b><i>method </i>...<b>> </b>... <b>&lt;/Limit></b>
148<dd style="margin-left: 5.0em"><dt><a name="LimitExcept"></a><b>&lt;LimitExcept </b><i>method </i>...<b>> </b>... <b>&lt;/LimitExcept></b>
149<dd style="margin-left: 5.0em">Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section "HTTP METHOD NAMES".
150<dt><a name="LimitRequestBody"></a><b>LimitRequestBody </b><i>size</i>
151<dd style="margin-left: 5.0em">Specifies the maximum size of print files, IPP requests, and HTML form data.
152The default is "0" which disables the limit check.
153<dt><a name="Listen"></a><b>Listen </b><i>ipv4-address</i><b>:</b><i>port</i>
154<dd style="margin-left: 5.0em"><dt><b>Listen [</b><i>ipv6-address</i><b>]:</b><i>port</i>
155<dd style="margin-left: 5.0em"><dt><b>Listen *:</b><i>port</i>
156<dd style="margin-left: 5.0em"><dt><b>Listen </b><i>/path/to/domain/socket</i>
157<dd style="margin-left: 5.0em">Listens to the specified address and port or domain socket path for connections.
158Multiple Listen directives can be provided to listen on multiple addresses.
159The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks.
160Note: "Listen *:<i>port</i>" and "Port <i>port</i>" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port.
161<dt><a name="Location"></a><b>&lt;Location </b><i>/path</i><b>> </b>... <b>&lt;/Location></b>
162<dd style="margin-left: 5.0em">Specifies access control for the named location.
163Paths are documented below in the section "LOCATION PATHS".
164<dt><a name="LogDebugHistory"></a><b>LogDebugHistory </b><i>number</i>
165<dd style="margin-left: 5.0em">Specifies the number of debugging messages that are retained for logging if an error occurs in a print job. Debug messages are logged regardless of the LogLevel setting.
166<dt><a name="LogLevel"></a><b>LogLevel </b>none
167<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>emerg
168<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>alert
169<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>crit
170<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>error
171<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>warn
172<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>notice
173<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>info
174<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>debug
175<dd style="margin-left: 5.0em"><dt><b>LogLevel </b>debug2
176<dd style="margin-left: 5.0em">Specifies the level of logging for the ErrorLog file.
177The value "none" stops all logging while "debug2" logs everything.
178The default is "warn".
179<dt><a name="LogTimeFormat"></a><b>LogTimeFormat </b>standard
180<dd style="margin-left: 5.0em"><dt><b>LogTimeFormat </b>usecs
181<dd style="margin-left: 5.0em">Specifies the format of the date and time in the log files.
182The value "standard" is the default and logs whole seconds while "usecs" logs microseconds.
183<dt><a name="MaxClients"></a><b>MaxClients </b><i>number</i>
184<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous clients that are allowed by the scheduler.
185The default is "100".
186<dt><a name="MaxClientPerHost"></a><b>MaxClientsPerHost </b><i>number</i>
187<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous clients that are allowed from a
188single address.
189The default is the MaxClients value.
190<dt><a name="MaxCopies"></a><b>MaxCopies </b><i>number</i>
191<dd style="margin-left: 5.0em">Specifies the maximum number of copies that a user can print of each job.
192The default is "9999".
193<dt><a name="MaxHoldTime"></a><b>MaxHoldTime </b><i>seconds</i>
194<dd style="margin-left: 5.0em">Specifies the maximum time a job may remain in the "indefinite" hold state before it is canceled.
195The default is "0" which disables cancellation of held jobs.
196<dt><a name="MaxJobs"></a><b>MaxJobs </b><i>number</i>
197<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous jobs that are allowed.
198Set to "0" to allow an unlimited number of jobs.
199The default is "500".
200<dt><a name="MaxJobsPerPrinter"></a><b>MaxJobsPerPrinter </b><i>number</i>
201<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous jobs that are allowed per printer.
202The default is "0" which allows up to MaxJobs jobs per printer.
203<dt><a name="MaxJobsPerUser"></a><b>MaxJobsPerUser </b><i>number</i>
204<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous jobs that are allowed per user.
205The default is "0" which allows up to MaxJobs jobs per user.
206<dt><a name="MaxJobTime"></a><b>MaxJobTime </b><i>seconds</i>
207<dd style="margin-left: 5.0em">Specifies the maximum time a job may take to print before it is canceled.
208Set to "0" to disable cancellation of "stuck" jobs.
209The default is "10800" (3 hours).
210<dt><a name="MaxLogSize"></a><b>MaxLogSize </b><i>size</i>
211<dd style="margin-left: 5.0em">Specifies the maximum size of the log files before they are rotated.
212The value "0" disables log rotation.
213The default is "1048576" (1MB).
214<dt><a name="MaxSubscriptions"></a><b>MaxSubscriptions </b><i>number</i>
215<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous event subscriptions that are allowed.
216Set to "0" to allow an unlimited number of subscriptions.
217The default is "100".
218<dt><a name="MaxSubscriptionsPerJob"></a><b>MaxSubscriptionsPerJob </b><i>number</i>
219<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous event subscriptions that are allowed per job.
220The default is "0" which allows up to MaxSubscriptions subscriptions per job.
221<dt><a name="MaxSubscriptionsPerPrinter"></a><b>MaxSubscriptionsPerPrinter </b><i>number</i>
222<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous event subscriptions that are allowed per printer.
223The default is "0" which allows up to MaxSubscriptions subscriptions per printer.
224<dt><a name="MaxSubscriptionsPerUser"></a><b>MaxSubscriptionsPerUser </b><i>number</i>
225<dd style="margin-left: 5.0em">Specifies the maximum number of simultaneous event subscriptions that are allowed per user.
226The default is "0" which allows up to MaxSubscriptions subscriptions per user.
227<dt><a name="MultipleOperationTimeout"></a><b>MultipleOperationTimeout </b><i>seconds</i>
228<dd style="margin-left: 5.0em">Specifies the maximum amount of time to allow between files in a multiple file print job.
229The default is "900" (15 minutes).
230<dt><a name="Policy"></a><b>&lt;Policy </b><i>name</i><b>> </b>... <b>&lt;/Policy></b>
231<dd style="margin-left: 5.0em">Specifies access control for the named policy.
232<dt><a name="Port"></a><b>Port </b><i>number</i>
233<dd style="margin-left: 5.0em">Listens to the specified port number for connections.
234<dt><a name="PreserveJobFiles"></a><b>PreserveJobFiles Yes</b>
235<dd style="margin-left: 5.0em"><dt><b>PreserveJobFiles No</b>
236<dd style="margin-left: 5.0em"><dt><b>PreserveJobFiles </b><i>seconds</i>
237<dd style="margin-left: 5.0em">Specifies whether job files (documents) are preserved after a job is printed.
238If a numeric value is specified, job files are preserved for the indicated number of seconds after printing.
239The default is "86400" (preserve 1 day).
240<dt><a name="PreserveJobHistory"></a><b>PreserveJobHistory Yes</b>
241<dd style="margin-left: 5.0em"><dt><b>PreserveJobHistory No</b>
242<dd style="margin-left: 5.0em"><dt><b>PreserveJobHistory </b><i>seconds</i>
243<dd style="margin-left: 5.0em">Specifies whether the job history is preserved after a job is printed.
244If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing.
245If "Yes", the job history is preserved until the MaxJobs limit is reached.
246The default is "Yes".
247<dt><a name="ReadyPaperSizes"></a><b>ReadyPaperSizes </b><i>sizename[,...]</i>
248<dd style="margin-left: 5.0em">Specifies a list of potential paper sizes that are reported as "ready" (loaded).
249The actual list will only contain sizes that each printer supports.
250The default is "Letter,Legal,Tabloid,4x6,Env10" when the default paper size is "Letter" and "A3,A4,A5,A6,EnvDL" otherwise.
251Note: Paper sizes must use the size names from the PPD file and not PWG self-describing media size names.
252<dt><a name="ReloadTimeout"></a><b>ReloadTimeout </b><i>seconds</i>
253<dd style="margin-left: 5.0em">Specifies the amount of time to wait for job completion before restarting the scheduler.
254The default is "30".
255<dt><a name="ServerAdmin"></a><b>ServerAdmin </b><i>email-address</i>
256<dd style="margin-left: 5.0em">Specifies the email address of the server administrator.
257The default value is "root@ServerName".
258<dt><a name="ServerAlias"></a><b>ServerAlias </b><i>hostname </i>[ ... <i>hostname </i>]
259<dd style="margin-left: 5.0em"><dt><b>ServerAlias *</b>
260<dd style="margin-left: 5.0em">The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces.
261Using the special name "*" can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall.
262If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using "*".
263<dt><a name="ServerName"></a><b>ServerName </b><i>hostname</i>
264<dd style="margin-left: 5.0em">Specifies the fully-qualified hostname of the server.
265The default is the value reported by the
266<b>hostname</b>(1)
267command.
268<dt><a name="ServerTokens"></a><b>ServerTokens None</b>
269<dd style="margin-left: 5.0em"><dt><b>ServerTokens ProductOnly</b>
270<dd style="margin-left: 5.0em"><dt><b>ServerTokens Major</b>
271<dd style="margin-left: 5.0em"><dt><b>ServerTokens Minor</b>
272<dd style="margin-left: 5.0em"><dt><b>ServerTokens Minimal</b>
273<dd style="margin-left: 5.0em"><dt><b>ServerTokens OS</b>
274<dd style="margin-left: 5.0em"><dt><b>ServerTokens Full</b>
275<dd style="margin-left: 5.0em">Specifies what information is included in the Server header of HTTP responses.
276"None" disables the Server header.
277"ProductOnly" reports "CUPS".
278"Major" reports "CUPS/major IPP/2".
279"Minor" reports "CUPS/major.minor IPP/2.1".
280"Minimal" reports "CUPS/major.minor.patch IPP/2.1".
281"OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1".
282"Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1".
283The default is "Minimal".
284<dt><a name="SSLListen"></a><b>SSLListen </b><i>ipv4-address</i><b>:</b><i>port</i>
285<dd style="margin-left: 5.0em"><dt><b>SSLListen [</b><i>ipv6-address</i><b>]:</b><i>port</i>
286<dd style="margin-left: 5.0em"><dt><b>SSLListen *:</b><i>port</i>
287<dd style="margin-left: 5.0em">Listens on the specified address and port for encrypted connections.
288<dt><a name="SSLOptions"></a><dt><b>SSLOptions </b>[<i>AllowDH</i>] [<i>AllowRC4</i>] [<i>AllowSSL3</i>] [<i>DenyCBC</i>] [<i>DenyTLS1.0</i>] [<i>MaxTLS1.0</i>] [<i>MaxTLS1.1</i>] [<i>MaxTLS1.2</i>] [<i>MaxTLS1.3</i>] [<i>MinTLS1.0</i>] [<i>MinTLS1.1</i>] [<i>MinTLS1.2</i>] [<i>MinTLS1.3</i>] [<i>NoSystem</i>]
289<dd style="margin-left: 5.0em"><dt><b>SSLOptions None</b>
290<dd style="margin-left: 5.0em">Sets encryption options (only in /etc/cups/client.conf).
291By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites.
292Security is reduced when <i>Allow</i> options are used.
293Security is enhanced when <i>Deny</i> options are used.
294The <i>AllowDH</i> option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
295The <i>AllowRC4</i> option enables the 128-bit RC4 cipher suites, which are required for some older clients.
296The <i>AllowSSL3</i> option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
297The <i>DenyCBC</i> option disables all CBC cipher suites.
298The <i>DenyTLS1.0</i> option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
299The <i>MinTLS</i> options set the minimum TLS version to support.
300The <i>MaxTLS</i> options set the maximum TLS version to support.
301The <i>NoSystem</i> option disables applying system cryptographic policy.
302Not all operating systems support TLS 1.3 at this time.
303<dt><a name="SSLPort"></a><b>SSLPort </b><i>port</i>
304<dd style="margin-left: 5.0em">Listens on the specified port for encrypted connections.
305<dt><a name="StrictConformance"></a><b>StrictConformance Yes</b>
306<dd style="margin-left: 5.0em"><dt><b>StrictConformance No</b>
307<dd style="margin-left: 5.0em">Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications.
308The default is "No".
309<dt><a name="Timeout"></a><b>Timeout </b><i>seconds</i>
310<dd style="margin-left: 5.0em">Specifies the HTTP request timeout.
311The default is "900" (15 minutes).
312<dt><a name="WebInterface"></a><b>WebInterface yes</b>
313<dd style="margin-left: 5.0em"><dt><b>WebInterface no</b>
314<dd style="margin-left: 5.0em">Specifies whether the web interface is enabled.
315The default is "No".
316</dl>
317<h3><a name="HTTP_METHOD_NAMES">Http Method Names</a></h3>
318The following HTTP methods are supported by
319<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8):</a>
320<dl class="man">
321<dt>GET
322<dd style="margin-left: 5.0em">Used by a client to download icons and other printer resources and to access the CUPS web interface.
323<dt>HEAD
324<dd style="margin-left: 5.0em">Used by a client to get the type, size, and modification date of resources.
325<dt>OPTIONS
326<dd style="margin-left: 5.0em">Used by a client to establish a secure (SSL/TLS) connection.
327<dt>POST
328<dd style="margin-left: 5.0em">Used by a client to submit IPP requests and HTML forms from the CUPS web interface.
329<dt>PUT
330<dd style="margin-left: 5.0em">Used by a client to upload configuration files.
331</dl>
332<h3><a name="IPP_OPERATION_NAMES">Ipp Operation Names</a></h3>
333The following IPP operations are supported by
334<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8):</a>
335<dl class="man">
336<dt>CUPS-Accept-Jobs
337<dd style="margin-left: 5.0em">Allows a printer to accept new jobs.
338<dt>CUPS-Add-Modify-Class
339<dd style="margin-left: 5.0em">Adds or modifies a printer class.
340<dt>CUPS-Add-Modify-Printer
341<dd style="margin-left: 5.0em">Adds or modifies a printer.
342<dt>CUPS-Authenticate-Job
343<dd style="margin-left: 5.0em">Releases a job that is held for authentication.
344<dt>CUPS-Delete-Class
345<dd style="margin-left: 5.0em">Deletes a printer class.
346<dt>CUPS-Delete-Printer
347<dd style="margin-left: 5.0em">Deletes a printer.
348<dt>CUPS-Get-Classes
349<dd style="margin-left: 5.0em">Gets a list of printer classes.
350<dt>CUPS-Get-Default
351<dd style="margin-left: 5.0em">Gets the server default printer or printer class.
352<dt>CUPS-Get-Devices
353<dd style="margin-left: 5.0em">Gets a list of devices that are currently available.
354<dt>CUPS-Get-Document
355<dd style="margin-left: 5.0em">Gets a document file for a job.
356<dt>CUPS-Get-PPD
357<dd style="margin-left: 5.0em">Gets a PPD file.
358<dt>CUPS-Get-PPDs
359<dd style="margin-left: 5.0em">Gets a list of installed PPD files.
360<dt>CUPS-Get-Printers
361<dd style="margin-left: 5.0em">Gets a list of printers.
362<dt>CUPS-Move-Job
363<dd style="margin-left: 5.0em">Moves a job.
364<dt>CUPS-Reject-Jobs
365<dd style="margin-left: 5.0em">Prevents a printer from accepting new jobs.
366<dt>CUPS-Set-Default
367<dd style="margin-left: 5.0em">Sets the server default printer or printer class.
368<dt>Cancel-Job
369<dd style="margin-left: 5.0em">Cancels a job.
370<dt>Cancel-Jobs
371<dd style="margin-left: 5.0em">Cancels one or more jobs.
372<dt>Cancel-My-Jobs
373<dd style="margin-left: 5.0em">Cancels one or more jobs creates by a user.
374<dt>Cancel-Subscription
375<dd style="margin-left: 5.0em">Cancels a subscription.
376<dt>Close-Job
377<dd style="margin-left: 5.0em">Closes a job that is waiting for more documents.
378<dt>Create-Job
379<dd style="margin-left: 5.0em">Creates a new job with no documents.
380<dt>Create-Job-Subscriptions
381<dd style="margin-left: 5.0em">Creates a subscription for job events.
382<dt>Create-Printer-Subscriptions
383<dd style="margin-left: 5.0em">Creates a subscription for printer events.
384<dt>Get-Job-Attributes
385<dd style="margin-left: 5.0em">Gets information about a job.
386<dt>Get-Jobs
387<dd style="margin-left: 5.0em">Gets a list of jobs.
388<dt>Get-Notifications
389<dd style="margin-left: 5.0em">Gets a list of event notifications for a subscription.
390<dt>Get-Printer-Attributes
391<dd style="margin-left: 5.0em">Gets information about a printer or printer class.
392<dt>Get-Subscription-Attributes
393<dd style="margin-left: 5.0em">Gets information about a subscription.
394<dt>Get-Subscriptions
395<dd style="margin-left: 5.0em">Gets a list of subscriptions.
396<dt>Hold-Job
397<dd style="margin-left: 5.0em">Holds a job from printing.
398<dt>Hold-New-Jobs
399<dd style="margin-left: 5.0em">Holds all new jobs from printing.
400<dt>Pause-Printer
401<dd style="margin-left: 5.0em">Stops processing of jobs by a printer or printer class.
402<dt>Pause-Printer-After-Current-Job
403<dd style="margin-left: 5.0em">Stops processing of jobs by a printer or printer class after the current job is finished.
404<dt>Print-Job
405<dd style="margin-left: 5.0em">Creates a new job with a single document.
406<dt>Purge-Jobs
407<dd style="margin-left: 5.0em">Cancels one or more jobs and deletes the job history.
408<dt>Release-Held-New-Jobs
409<dd style="margin-left: 5.0em">Allows previously held jobs to print.
410<dt>Release-Job
411<dd style="margin-left: 5.0em">Allows a job to print.
412<dt>Renew-Subscription
413<dd style="margin-left: 5.0em">Renews a subscription.
414<dt>Restart-Job
415<dd style="margin-left: 5.0em">Reprints a job, if possible.
416<dt>Send-Document
417<dd style="margin-left: 5.0em">Adds a document to a job.
418<dt>Set-Job-Attributes
419<dd style="margin-left: 5.0em">Changes job information.
420<dt>Set-Printer-Attributes
421<dd style="margin-left: 5.0em">Changes printer or printer class information.
422<dt>Validate-Job
423<dd style="margin-left: 5.0em">Validates options for a new job.
424</dl>
425<h3><a name="LOCATION_PATHS">Location Paths</a></h3>
426The following paths are commonly used when configuring
427<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8):</a>
428<dl class="man">
429<dt>/
430<dd style="margin-left: 5.0em">The path for all get operations (get-printers, get-jobs, etc.)
431<dt>/admin
432<dd style="margin-left: 5.0em">The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
433<dt>/admin/conf
434<dd style="margin-left: 5.0em">The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
435<dt>/admin/log
436<dd style="margin-left: 5.0em">The path for access to the CUPS log files (access_log, error_log, page_log)
437<dt>/classes
438<dd style="margin-left: 5.0em">The path for all printer classes
439<dt>/classes/name
440<dd style="margin-left: 5.0em">The resource for the named printer class
441<dt>/jobs
442<dd style="margin-left: 5.0em">The path for all jobs (hold-job, release-job, etc.)
443<dt>/jobs/id
444<dd style="margin-left: 5.0em">The path for the specified job
445<dt>/printers
446<dd style="margin-left: 5.0em">The path for all printers
447<dt>/printers/name
448<dd style="margin-left: 5.0em">The path for the named printer
449<dt>/printers/name.png
450<dd style="margin-left: 5.0em">The icon file path for the named printer
451<dt>/printers/name.ppd
452<dd style="margin-left: 5.0em">The PPD file path for the named printer
453</dl>
454<h3><a name="DIRECTIVES_VALID_WITHIN_LOCATION_AND_LIMIT_SECTIONS">Directives Valid Within Location And Limit Sections</a></h3>
455The following directives may be placed inside Location and Limit sections in the <b>cupsd.conf</b> file:
456<dl class="man">
457<dt><b>Allow all</b>
458<dd style="margin-left: 5.0em"><dt><b>Allow none</b>
459<dd style="margin-left: 5.0em"><dt><b>Allow </b><i>host.domain.com</i>
460<dd style="margin-left: 5.0em"><dt><b>Allow *.</b><i>domain.com</i>
461<dd style="margin-left: 5.0em"><dt><b>Allow </b><i>ipv4-address</i>
462<dd style="margin-left: 5.0em"><dt><b>Allow </b><i>ipv4-address</i><b>/</b><i>netmask</i>
463<dd style="margin-left: 5.0em"><dt><b>Allow </b><i>ipv4-address</i><b>/</b><i>mm</i>
464<dd style="margin-left: 5.0em"><dt><b>Allow [</b><i>ipv6-address</i><b>]</b>
465<dd style="margin-left: 5.0em"><dt><b>Allow [</b><i>ipv6-address</i><b>]/</b><i>mm</i>
466<dd style="margin-left: 5.0em"><dt><b>Allow @IF(</b><i>name</i><b>)</b>
467<dd style="margin-left: 5.0em"><dt><b>Allow @LOCAL</b>
468<dd style="margin-left: 5.0em">Allows access from the named hosts, domains, addresses, or interfaces.
469The @IF(name) form uses the current subnets configured for the named interface.
470The @LOCAL form uses the current subnets configured for all interfaces that are not point-to-point, for example Ethernet and Wi-Fi interfaces are used but DSL and VPN interfaces are not.
471The Order directive controls whether Allow lines are evaluated before or after Deny lines.
472<dt><b>AuthType None</b>
473<dd style="margin-left: 5.0em"><dt><b>AuthType Basic</b>
474<dd style="margin-left: 5.0em"><dt><b>AuthType Default</b>
475<dd style="margin-left: 5.0em">Specifies the type of authentication required.
476The value "Default" corresponds to the DefaultAuthType value.
477<dt><b>Deny all</b>
478<dd style="margin-left: 5.0em"><dt><b>Deny none</b>
479<dd style="margin-left: 5.0em"><dt><b>Deny </b><i>host.domain.com</i>
480<dd style="margin-left: 5.0em"><dt><b>Deny *.</b><i>domain.com</i>
481<dd style="margin-left: 5.0em"><dt><b>Deny </b><i>ipv4-address</i>
482<dd style="margin-left: 5.0em"><dt><b>Deny </b><i>ipv4-address</i><b>/</b><i>netmask</i>
483<dd style="margin-left: 5.0em"><dt><b>Deny </b><i>ipv4-address</i><b>/</b><i>mm</i>
484<dd style="margin-left: 5.0em"><dt><b>Deny [</b><i>ipv6-address</i><b>]</b>
485<dd style="margin-left: 5.0em"><dt><b>Deny [</b><i>ipv6-address</i><b>]/</b><i>mm</i>
486<dd style="margin-left: 5.0em"><dt><b>Deny @IF(</b><i>name</i><b>)</b>
487<dd style="margin-left: 5.0em"><dt><b>Deny @LOCAL</b>
488<dd style="margin-left: 5.0em">Denies access from the named hosts, domains, addresses, or interfaces.
489The @IF(name) form uses the current subnets configured for the named interface.
490The @LOCAL form uses the current subnets configured for all interfaces that are not point-to-point, for example Ethernet and Wi-Fi interfaces are used but DSL and VPN interfaces are not.
491The Order directive controls whether Deny lines are evaluated before or after Allow lines.
492<dt><b>Encryption IfRequested</b>
493<dd style="margin-left: 5.0em"><dt><b>Encryption Never</b>
494<dd style="margin-left: 5.0em"><dt><b>Encryption Required</b>
495<dd style="margin-left: 5.0em">Specifies the level of encryption that is required for a particular location.
496The default value is "IfRequested".
497<dt><b>Order allow,deny</b>
498<dd style="margin-left: 5.0em">Specifies that access is denied by default. Allow lines are then processed followed by Deny lines to determine whether a client may access a particular resource.
499<dt><b>Order deny,allow</b>
500<dd style="margin-left: 5.0em">Specifies that access is allowed by default. Deny lines are then processed followed by Allow lines to determine whether a client may access a particular resource.
501<dt><b>Require group </b><i>group-name </i>[ <i>group-name </i>... ]
502<dd style="margin-left: 5.0em">Specifies that an authenticated user must be a member of one of the named groups.
503<dt><b>Require user {</b><i>user-name</i>|<b>@</b><i>group-name</i>} ...
504<dd style="margin-left: 5.0em">Specifies that an authenticated user must match one of the named users or be a member of one of the named groups.
505The group name "@SYSTEM" corresponds to the list of groups defined by the SystemGroup directive in the
506<a href="man-cups-files.conf.html?TOPIC=Man+Pages"><b>cups-files.conf</b>(5)</a>
507file.
508The group name "@OWNER" corresponds to the owner of the resource, for example the person that submitted a print job.
509Note: The 'root' user is not special and must be granted privileges like any other user account.
510<dt><b>Require valid-user</b>
511<dd style="margin-left: 5.0em">Specifies that any authenticated user is acceptable.
512<dt><b>Satisfy all</b>
513<dd style="margin-left: 5.0em">Specifies that all Allow, AuthType, Deny, Order, and Require conditions must be satisfied to allow access.
514<dt><b>Satisfy any</b>
515<dd style="margin-left: 5.0em">Specifies that any a client may access a resource if either the authentication (AuthType/Require) or address (Allow/Deny/Order) conditions are satisfied.
516For example, this can be used to require authentication only for remote accesses.
517</dl>
518<h3><a name="DIRECTIVES_VALID_WITHIN_POLICY_SECTIONS">Directives Valid Within Policy Sections</a></h3>
519The following directives may be placed inside Policy sections in the <b>cupsd.conf</b> file:
520<dl class="man">
521<dt><b>JobPrivateAccess all</b>
522<dd style="margin-left: 5.0em"><dt><b>JobPrivateAccess default</b>
523<dd style="margin-left: 5.0em"><dt><b>JobPrivateAccess </b>{<i>user</i>|<b>@</b><i>group</i>|<b>@ACL</b>|<b>@OWNER</b>|<b>@SYSTEM</b>} ...
524<dd style="margin-left: 5.0em">Specifies an access list for a job's private values.
525The "default" access list is "@OWNER @SYSTEM".
526"@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
527"@OWNER" maps to the job's owner.
528"@SYSTEM" maps to the groups listed for the SystemGroup directive in the
529<a href="man-cups-files.conf.html?TOPIC=Man+Pages"><b>cups-files.conf</b>(5)</a>
530file.
531<dt><b>JobPrivateValues all</b>
532<dd style="margin-left: 5.0em"><dt><b>JobPrivateValues default</b>
533<dd style="margin-left: 5.0em"><dt><b>JobPrivateValues none</b>
534<dd style="margin-left: 5.0em"><dt><b>JobPrivateValues </b><i>attribute-name </i>[ ... <i>attribute-name </i>]
535<dd style="margin-left: 5.0em">Specifies the list of job values to make private.
536The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".
537<dt><b>SubscriptionPrivateAccess all</b>
538<dd style="margin-left: 5.0em"><dt><b>SubscriptionPrivateAccess default</b>
539<dd style="margin-left: 5.0em"><dt><b>SubscriptionPrivateAccess </b>{<i>user</i>|<b>@</b><i>group</i>|<b>@ACL</b>|<b>@OWNER</b>|<b>@SYSTEM</b>} ...
540<dd style="margin-left: 5.0em">Specifies an access list for a subscription's private values.
541The "default" access list is "@OWNER @SYSTEM".
542"@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
543"@OWNER" maps to the job's owner.
544"@SYSTEM" maps to the groups listed for the SystemGroup directive in the
545<a href="man-cups-files.conf.html?TOPIC=Man+Pages"><b>cups-files.conf</b>(5)</a>
546file.
547<dt><b>SubscriptionPrivateValues all</b>
548<dd style="margin-left: 5.0em"><dt><b>SubscriptionPrivateValues default</b>
549<dd style="margin-left: 5.0em"><dt><b>SubscriptionPrivateValues none</b>
550<dd style="margin-left: 5.0em"><dt><b>SubscriptionPrivateValues </b><i>attribute-name </i>[ ... <i>attribute-name </i>]
551<dd style="margin-left: 5.0em">Specifies the list of subscription values to make private.
552The "default" values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data".
553</dl>
554<h3><a name="DEPRECATED_DIRECTIVES">Deprecated Directives</a></h3>
555The following directives are deprecated and will be removed in a future release of CUPS:
556<dl class="man">
557<dt><b>AuthType Negotiate</b>
558<dd style="margin-left: 5.0em">Specifies Kerberos authentication is required.
559<dt><a name="Classification"></a><b>Classification </b><i>banner</i>
560<dd style="margin-left: 5.0em"><br>
561Specifies the security classification of the server.
562Any valid banner name can be used, including "classified", "confidential", "secret", "topsecret", and "unclassified", or the banner can be omitted to disable secure printing functions.
563The default is no classification banner.
564<dt><a name="ClassifyOverride"></a><b>ClassifyOverride Yes</b>
565<dd style="margin-left: 5.0em"><dt><b>ClassifyOverride No</b>
566<dd style="margin-left: 5.0em"><br>
567Specifies whether users may override the classification (cover page) of individual print jobs using the "job-sheets" option.
568The default is "No".
569<dt><b>DefaultAuthType Negotiate</b>
570<dd style="margin-left: 5.0em">Specifies that Kerberos authentication is required by default.
571<dt><a name="GSSServiceName"></a><b>GSSServiceName </b><i>name</i>
572<dd style="margin-left: 5.0em">Specifies the service name when using Kerberos authentication.
573The default service name is "http."
574<dt><a name="PageLogFormat"></a><b>PageLogFormat </b><i>format-string</i>
575<dd style="margin-left: 5.0em">Specifies the format of PageLog lines.
576Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally.
577The following percent sequences are recognized:
578<pre class="man">
579    "%%" inserts a single percent character.
580    "%{name}" inserts the value of the specified IPP attribute.
581    "%C" inserts the number of copies for the current page.
582    "%P" inserts the current page number.
583    "%T" inserts the current date and time in common log format.
584    "%j" inserts the job ID.
585    "%p" inserts the printer name.
586    "%u" inserts the username.
587
588</pre>
589The default is the empty string, which disables page logging.
590The string "%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}" creates a page log with the standard items.
591Use "%{job-impressions-completed}" to insert the number of pages (sides) that were printed, or "%{job-media-sheets-completed}" to insert the number of sheets that were printed.
592</dl>
593<h2 class="title"><a name="NOTES">Notes</a></h2>
594File, directory, and user configuration directives that used to be allowed in the <b>cupsd.conf</b> file are now stored in the
595<a href="man-cups-files.conf.html?TOPIC=Man+Pages"><b>cups-files.conf</b>(5)</a>
596file instead in order to prevent certain types of privilege escalation attacks.
597<p>The scheduler MUST be restarted manually after making changes to the <b>cupsd.conf</b> file.
598On Linux this is typically done using the
599<b>systemctl</b>(8)
600command, while on macOS the
601<b>launchctl</b>(8)
602command is used instead.
603<p>The @LOCAL macro name can be confusing since the system running
604<b>cupsd</b>
605often belongs to a different set of subnets from its clients.
606<h2 class="title"><a name="CONFORMING_TO">Conforming To</a></h2>
607The <b>cupsd.conf</b> file format is based on the Apache HTTP Server configuration file format.
608<h2 class="title"><a name="EXAMPLES">Examples</a></h2>
609Log everything with a maximum log file size of 32 megabytes:
610<pre class="man">
611    AccessLogLevel all
612    LogLevel debug2
613    MaxLogSize 32m
614
615</pre>
616Require authentication for accesses from outside the 10. network:
617<pre class="man">
618    &lt;Location />
619    Order allow,deny
620    Allow from 10./8
621    AuthType Basic
622    Require valid-user
623    Satisfy any
624    &lt;/Location>
625</pre>
626<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
627<a href="man-classes.conf.html?TOPIC=Man+Pages"><b>classes.conf</b>(5),</a>
628<a href="man-cups-files.conf.html?TOPIC=Man+Pages"><b>cups-files.conf</b>(5),</a>
629<a href="man-cupsd.html?TOPIC=Man+Pages"><b>cupsd</b>(8),</a>
630<a href="man-mime.convs.html?TOPIC=Man+Pages"><b>mime.convs</b>(5),</a>
631<a href="man-mime.types.html?TOPIC=Man+Pages"><b>mime.types</b>(5),</a>
632<a href="man-printers.conf.html?TOPIC=Man+Pages"><b>printers.conf</b>(5),</a>
633<a href="man-subscriptions.conf.html?TOPIC=Man+Pages"><b>subscriptions.conf</b>(5),</a>
634CUPS Online Help (<a href="http://localhost:631/help">http://localhost:631/help</a>)
635<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
636Copyright &copy; 2020-2025 by OpenPrinting.
637
638</body>
639</html>
640