]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cupsd.conf.5
Add WITH-DISTINCT-VALUES support for collections.
[thirdparty/cups.git] / man / cupsd.conf.5
CommitLineData
ef416fc2 1.\"
e0660879 2.\" cupsd.conf man page for CUPS.
ef416fc2 3.\"
87030afb 4.\" Copyright © 2007-2019 by Apple Inc.
ee347e17 5.\" Copyright © 1997-2006 by Easy Software Products.
ef416fc2 6.\"
ee347e17
MS
7.\" Licensed under Apache License v2.0. See the file "LICENSE" for more
8.\" information.
ef416fc2 9.\"
242b4b9b 10.TH cupsd.conf 5 "CUPS" "16 July 2019" "Apple Inc."
ef416fc2 11.SH NAME
12cupsd.conf \- server configuration file for cups
13.SH DESCRIPTION
e0660879
MS
14The
15.I cupsd.conf
16file configures the CUPS scheduler,
17.BR cupsd (8).
2909c66c
MS
18It is normally located in the
19.I /etc/cups
25d0c3fe 20directory.
25d0c3fe
MS
21Each line in the file can be a configuration directive, a blank line, or a comment.
22Configuration directives typically consist of a name and zero or more values separated by whitespace.
23The configuration directive name and values are case-insensitive.
24Comment lines start with the # character.
25.SS TOP-LEVEL DIRECTIVES
26The following top-level directives are understood by
27.BR cupsd (8):
37d9646b 28.\"#AccessLogLevel
ef416fc2 29.TP 5
25d0c3fe 30\fBAccessLogLevel config\fR
1f0275e3 31.TP 5
25d0c3fe 32\fBAccessLogLevel actions\fR
1f0275e3 33.TP 5
25d0c3fe 34\fBAccessLogLevel all\fR
1f0275e3 35Specifies the logging level for the AccessLog file.
25d0c3fe
MS
36The "config" level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated.
37The "actions" level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for "config".
38The "all" level logs all requests.
39The default access log level is "actions".
37d9646b 40.\"#AutoPurgeJobs
1f0275e3 41.TP 5
25d0c3fe 42\fBAutoPurgeJobs Yes\fR
bd7854cb 43.TP 5
25d0c3fe 44\fBAutoPurgeJobs No\fR
ef416fc2 45.br
25d0c3fe
MS
46Specifies whether to purge job history data automatically when it is no longer required for quotas.
47The default is "No".
d7b38688
MS
48.\"#BrowseDNSSDSubTypes
49.TP 5
50.BI BrowseDNSSDSubTypes _subtype[,...]
51Specifies a list of Bonjour sub-types to advertise for each shared printer.
52For example, "BrowseDNSSDSubTypes _cups,_print" will tell network clients that both CUPS sharing and IPP Everywhere are supported.
53The default is "_cups" which is necessary for printer sharing to work between systems using CUPS.
37d9646b 54.\"#BrowseLocalProtocols
ef416fc2 55.TP 5
25d0c3fe 56\fBBrowseLocalProtocols all\fR
ef416fc2 57.TP 5
25d0c3fe 58\fBBrowseLocalProtocols dnssd\fR
b19ccc9e 59.TP 5
25d0c3fe
MS
60\fBBrowseLocalProtocols none\fR
61Specifies which protocols to use for local printer sharing.
62The default is "dnssd" on systems that support Bonjour and "none" otherwise.
37d9646b 63.\"#BrowseWebIF
25d0c3fe
MS
64.TP 5
65\fBBrowseWebIF Yes\fR
66.TP 5
67\fBBrowseWebIF No\fR
b19ccc9e 68.br
25d0c3fe
MS
69Specifies whether the CUPS web interface is advertised.
70The default is "No".
37d9646b 71.\"#Browsing
b19ccc9e 72.TP 5
25d0c3fe 73\fBBrowsing Yes\fR
bd7854cb 74.TP 5
25d0c3fe 75\fBBrowsing No\fR
ef416fc2 76.br
25d0c3fe
MS
77Specifies whether shared printers are advertised.
78The default is "No".
37d9646b 79.\"#DefaultAuthType
ef416fc2 80.TP 5
25d0c3fe 81\fBDefaultAuthType Basic\fR
bd7854cb 82.TP 5
25d0c3fe 83\fBDefaultAuthType Negotiate\fR
ef416fc2 84.br
85Specifies the default type of authentication to use.
25d0c3fe 86The default is "Basic".
37d9646b 87.\"#DefaultEncryption
ef416fc2 88.TP 5
25d0c3fe 89\fBDefaultEncryption Never\fR
8b450588 90.TP 5
25d0c3fe 91\fBDefaultEncryption IfRequested\fR
8b450588 92.TP 5
25d0c3fe
MS
93\fBDefaultEncryption Required\fR
94Specifies whether encryption will be used for authenticated requests.
95The default is "Required".
37d9646b 96.\"#DefaultLanguage
8b450588 97.TP 5
25d0c3fe 98\fBDefaultLanguage \fIlocale\fR
ef416fc2 99Specifies the default language to use for text and web content.
25d0c3fe 100The default is "en".
37d9646b 101.\"#DefaultPaperSize
ef416fc2 102.TP 5
25d0c3fe 103\fBDefaultPaperSize Auto\fR
49d87452 104.TP 5
25d0c3fe 105\fBDefaultPaperSize None\fR
49d87452 106.TP 5
25d0c3fe
MS
107\fBDefaultPaperSize \fIsizename\fR
108Specifies the default paper size for new print queues. "Auto" uses a locale-specific default, while "None" specifies there is no default paper size.
109Specific size names are typically "Letter" or "A4".
110The default is "Auto".
37d9646b 111.\"#DefaultPolicy
49d87452 112.TP 5
25d0c3fe 113\fBDefaultPolicy \fIpolicy-name\fR
ef416fc2 114Specifies the default access policy to use.
25d0c3fe 115The default access policy is "default".
37d9646b 116.\"#DefaultShared
ef416fc2 117.TP 5
25d0c3fe 118\fBDefaultShared Yes\fR
3d052e43 119.TP 5
25d0c3fe 120\fBDefaultShared No\fR
3d052e43 121Specifies whether local printers are shared by default.
25d0c3fe 122The default is "Yes".
37d9646b 123.\"#DirtyCleanInterval
25d0c3fe
MS
124.TP 5
125\fBDirtyCleanInterval \fIseconds\fR
126Specifies the delay for updating of configuration and state files.
127A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds.
128The default value is "30".
d7b38688
MS
129.\"#DNSSDHostName
130.TP 5
131.BI DNSSDHostName hostname.example.com
132Specifies the fully-qualified domain name for the server that is used for Bonjour sharing.
133The default is typically the server's ".local" hostname.
37d9646b 134.\"#ErrorPolicy
25d0c3fe 135.TP 5
053939b3
MS
136\fBErrorPolicy abort-job\fR
137Specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer.
138.TP 5
b95156db
MS
139\fBErrorPolicy retry-current-job\fR
140Specifies that a failed print job should be retried immediately unless otherwise specified for the printer.
141.TP 5
053939b3
MS
142\fBErrorPolicy retry-job\fR
143Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.
144.TP 5
053939b3
MS
145\fBErrorPolicy stop-printer\fR
146Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
37d9646b 147.\"#FilterLimit
053939b3 148.TP 5
25d0c3fe
MS
149\fBFilterLimit \fIlimit\fR
150Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems.
151A limit of 0 disables filter limiting.
152An average print to a non-PostScript printer needs a filter limit of about 200.
153A PostScript printer needs about half that (100).
154Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time.
155The default limit is "0".
37d9646b 156.\"#FilterNice
25d0c3fe
MS
157.TP 5
158\fBFilterNice \fInice-value\fR
159Specifies the scheduling priority (
160.BR nice (8)
161value) of filters that are run to print a job.
162The nice value ranges from 0, the highest priority, to 19, the lowest priority.
163The default is 0.
37d9646b 164.\"#GSSServiceName
25d0c3fe
MS
165.TP 5
166\fBGSSServiceName \fIname\fR
167Specifies the service name when using Kerberos authentication.
168The default service name is "http."
169.TP 5
37d9646b 170.\"#HostNameLookups
25d0c3fe
MS
171\fBHostNameLookups On\fR
172.TP 5
173\fBHostNameLookups Off\fR
174.TP 5
175\fBHostNameLookups Double\fR
176Specifies whether to do reverse lookups on connecting clients.
177The "Double" setting causes
178.BR cupsd (8)
179to verify that the hostname resolved from the address matches one of the addresses returned for that hostname.
180Double lookups also prevent clients with unregistered addresses from connecting to your server.
181The default is "Off" to avoid the potential server performance problems with hostname lookups.
182Only set this option to "On" or "Double" if absolutely required.
c4412c12
BN
183.\"#IdleExitTimeout
184.TP 5
185\fBIdleExitTimeout \fIseconds\fR
08d027c3
MS
186Specifies the length of time to wait before shutting down due to inactivity.
187The default is "60" seconds.
188Note: Only applicable when
c4412c12
BN
189.BR cupsd (8)
190is run on-demand (e.g., with \fB-l\fR).
37d9646b 191.\"#JobKillDelay
25d0c3fe
MS
192.TP 5
193\fBJobKillDelay \fIseconds\fR
194Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job.
195The default is "30".
37d9646b 196.\"#JobRetryInterval
25d0c3fe
MS
197.TP 5
198\fBJobRetryInterval \fIseconds\fR
199Specifies the interval between retries of jobs in seconds.
200This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job".
201The default is "30".
37d9646b 202.\"#JobRetryLimit
3d052e43 203.TP 5
25d0c3fe
MS
204\fBJobRetryLimit \fIcount\fR
205Specifies the number of retries that are done for jobs.
206This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job".
207The default is "5".
37d9646b 208.\"#KeepAlive
4a4b4f99 209.TP 5
25d0c3fe 210\fBKeepAlive Yes\fR
ef416fc2 211.TP 5
25d0c3fe
MS
212\fBKeepAlive No\fR
213Specifies whether to support HTTP keep-alive connections.
214The default is "Yes".
37d9646b 215.\"#LimitIPP
dcb445bc 216.TP 5
25d0c3fe 217\fB<Limit \fIoperation \fR...\fB> \fR... \fB</Limit>\fR
79c4c4ad 218Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section "IPP OPERATION NAMES".
37d9646b 219.\"#Limit
bd7854cb 220.TP 5
25d0c3fe 221\fB<Limit \fImethod \fR...\fB> \fR... \fB</Limit>\fR
37d9646b 222.\"#LimitExcept
bd7854cb 223.TP 5
25d0c3fe 224\fB<LimitExcept \fImethod \fR...\fB> \fR... \fB</LimitExcept>\fR
79c4c4ad 225Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section "HTTP METHOD NAMES".
37d9646b 226.\"#LimitRequestBody
ef416fc2 227.TP 5
25d0c3fe
MS
228\fBLimitRequestBody \fIsize\fR
229Specifies the maximum size of print files, IPP requests, and HTML form data.
230The default is "0" which disables the limit check.
37d9646b 231.\"#Listen
ef416fc2 232.TP 5
25d0c3fe 233\fBListen \fIipv4-address\fB:\fIport\fR
238c3832 234.TP 5
25d0c3fe 235\fBListen [\fIipv6-address\fB]:\fIport\fR
ef416fc2 236.TP 5
25d0c3fe 237\fBListen *:\fIport\fR
ef416fc2 238.TP 5
25d0c3fe
MS
239\fBListen \fI/path/to/domain/socket\fR
240Listens to the specified address and port or domain socket path for connections.
241Multiple Listen directives can be provided to listen on multiple addresses.
242The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks.
37d9646b 243.\"#ListenBackLog
80ca4592 244.TP 5
25d0c3fe
MS
245\fBListenBackLog \fInumber\fR
246Specifies the number of pending connections that will be allowed.
247This normally only affects very busy servers that have reached the MaxClients limit, but can also be triggered by large numbers of simultaneous connections.
248When the limit is reached, the operating system will refuse additional connections until the scheduler can accept the pending ones.
249The default is the OS-defined default limit, typically either "5" for older operating systems or "128" for newer operating systems.
37d9646b 250.\"#Location
ef416fc2 251.TP 5
25d0c3fe
MS
252\fB<Location \fI/path\fB> \fR... \fB</Location>\fR
253Specifies access control for the named location.
254Paths are documented below in the section "LOCATION PATHS".
37d9646b 255.\"#LogDebugHistory
ef416fc2 256.TP 5
25d0c3fe
MS
257\fBLogDebugHistory \fInumber\fR
258Specifies 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.
37d9646b 259.\"#LogLevel
ef416fc2 260.TP 5
25d0c3fe 261\fBLogLevel \fRnone
ef416fc2 262.TP 5
25d0c3fe 263\fBLogLevel \fRemerg
ef416fc2 264.TP 5
25d0c3fe 265\fBLogLevel \fRalert
ef416fc2 266.TP 5
25d0c3fe 267\fBLogLevel \fRcrit
bd7854cb 268.TP 5
25d0c3fe 269\fBLogLevel \fRerror
ed486911 270.TP 5
25d0c3fe 271\fBLogLevel \fRwarn
ef416fc2 272.TP 5
25d0c3fe 273\fBLogLevel \fRnotice
ef416fc2 274.TP 5
25d0c3fe 275\fBLogLevel \fRinfo
178cb736 276.TP 5
25d0c3fe 277\fBLogLevel \fRdebug
bd7854cb 278.TP 5
25d0c3fe
MS
279\fBLogLevel \fRdebug2
280Specifies the level of logging for the ErrorLog file.
281The value "none" stops all logging while "debug2" logs everything.
282The default is "warn".
37d9646b 283.\"#LogTimeFormat
bd7854cb 284.TP 5
25d0c3fe 285\fBLogTimeFormat \fRstandard
bd7854cb 286.TP 5
25d0c3fe
MS
287\fBLogTimeFormat \fRusecs
288Specifies the format of the date and time in the log files.
289The value "standard" is the default and logs whole seconds while "usecs" logs microseconds.
37d9646b 290.\"#MaxClients
bd7854cb 291.TP 5
25d0c3fe
MS
292\fBMaxClients \fInumber\fR
293Specifies the maximum number of simultaneous clients that are allowed by the scheduler.
294The default is "100".
37d9646b 295.\"#MaxClientPerHost
bd7854cb 296.TP 5
25d0c3fe
MS
297\fBMaxClientsPerHost \fInumber\fR
298Specifies the maximum number of simultaneous clients that are allowed from a
299single address.
300The default is the MaxClients value.
37d9646b 301.\"#MaxCopies
bd7854cb 302.TP 5
25d0c3fe
MS
303\fBMaxCopies \fInumber\fR
304Specifies the maximum number of copies that a user can print of each job.
305The default is "9999".
37d9646b 306.\"#MaxHoldTime
25d0c3fe
MS
307.TP 5
308\fBMaxHoldTime \fIseconds\fR
309Specifies the maximum time a job may remain in the "indefinite" hold state before it is canceled.
310The default is "0" which disables cancellation of held jobs.
37d9646b 311.\"#MaxJobs
25d0c3fe
MS
312.TP 5
313\fBMaxJobs \fInumber\fR
314Specifies the maximum number of simultaneous jobs that are allowed.
315Set to "0" to allow an unlimited number of jobs.
316The default is "500".
37d9646b 317.\"#MaxJobsPerPrinter
25d0c3fe
MS
318.TP 5
319\fBMaxJobsPerPrinter \fInumber\fR
320Specifies the maximum number of simultaneous jobs that are allowed per printer.
321The default is "0" which allows up to MaxJobs jobs per printer.
37d9646b 322.\"#MaxJobsPerUser
25d0c3fe
MS
323.TP 5
324\fBMaxJobsPerUser \fInumber\fR
325Specifies the maximum number of simultaneous jobs that are allowed per user.
326The default is "0" which allows up to MaxJobs jobs per user.
37d9646b 327.\"#MaxJobTime
25d0c3fe
MS
328.TP 5
329\fBMaxJobTime \fIseconds\fR
330Specifies the maximum time a job may take to print before it is canceled.
331Set to "0" to disable cancellation of "stuck" jobs.
332The default is "10800" (3 hours).
37d9646b 333.\"#MaxLogSize
25d0c3fe
MS
334.TP 5
335\fBMaxLogSize \fIsize\fR
336Specifies the maximum size of the log files before they are rotated.
337The value "0" disables log rotation.
338The default is "1048576" (1MB).
37d9646b 339.\"#MultipleOperationTimeout
25d0c3fe
MS
340.TP 5
341\fBMultipleOperationTimeout \fIseconds\fR
342Specifies the maximum amount of time to allow between files in a multiple file print job.
d6395c6f 343The default is "900" (15 minutes).
37d9646b 344.\"#Policy
bd7854cb 345.TP 5
25d0c3fe
MS
346\fB<Policy \fIname\fB> \fR... \fB</Policy>\fR
347Specifies access control for the named policy.
37d9646b 348.\"#Port
bd7854cb 349.TP 5
25d0c3fe
MS
350\fBPort \fInumber\fR
351Listens to the specified port number for connections.
37d9646b 352.\"#PreserveJobFiles
bd7854cb 353.TP 5
25d0c3fe 354\fBPreserveJobFiles Yes\fR
ef416fc2 355.TP 5
25d0c3fe 356\fBPreserveJobFiles No\fR
dfd5680b 357.TP 5
25d0c3fe
MS
358\fBPreserveJobFiles \fIseconds\fR
359Specifies whether job files (documents) are preserved after a job is printed.
360If a numeric value is specified, job files are preserved for the indicated number of seconds after printing.
361The default is "86400" (preserve 1 day).
37d9646b 362.\"#PreserveJobHistory
dfd5680b 363.TP 5
25d0c3fe 364\fBPreserveJobHistory Yes\fR
ef416fc2 365.TP 5
25d0c3fe 366\fBPreserveJobHistory No\fR
ef416fc2 367.TP 5
25d0c3fe
MS
368\fBPreserveJobHistory \fIseconds\fR
369Specifies whether the job history is preserved after a job is printed.
370If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing.
371If "Yes", the job history is preserved until the MaxJobs limit is reached.
372The default is "Yes".
37d9646b 373.\"#ReloadTimeout
ef416fc2 374.TP 5
25d0c3fe
MS
375\fBReloadTimeout \fIseconds\fR
376Specifies the amount of time to wait for job completion before restarting the scheduler.
377The default is "30".
37d9646b 378.\"#ServerAdmin
ef416fc2 379.TP 5
25d0c3fe
MS
380\fBServerAdmin \fIemail-address\fR
381Specifies the email address of the server administrator.
382The default value is "root@ServerName".
37d9646b 383.\"#ServerAlias
ef416fc2 384.TP 5
25d0c3fe 385\fBServerAlias \fIhostname \fR[ ... \fIhostname \fR]
ef416fc2 386.TP 5
25d0c3fe
MS
387\fBServerAlias *\fR
388The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces.
389Using the special name "*" can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall.
390If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using "*".
37d9646b 391.\"#ServerName
dcb445bc 392.TP 5
25d0c3fe
MS
393\fBServerName \fIhostname\fR
394Specifies the fully-qualified hostname of the server.
395The default is the value reported by the
396.BR hostname (1)
397command.
37d9646b 398.\"#ServerTokens
ef416fc2 399.TP 5
25d0c3fe 400\fBServerTokens None\fR
ef416fc2 401.TP 5
25d0c3fe 402\fBServerTokens ProductOnly\fR
dfd5680b 403.TP 5
25d0c3fe 404\fBServerTokens Major\fR
01ce6322 405.TP 5
25d0c3fe 406\fBServerTokens Minor\fR
ef416fc2 407.TP 5
25d0c3fe 408\fBServerTokens Minimal\fR
ef416fc2 409.TP 5
25d0c3fe 410\fBServerTokens OS\fR
ef416fc2 411.TP 5
25d0c3fe
MS
412\fBServerTokens Full\fR
413Specifies what information is included in the Server header of HTTP responses.
414"None" disables the Server header.
415"ProductOnly" reports "CUPS".
59cd12c6
MS
416"Major" reports "CUPS/major IPP/2".
417"Minor" reports "CUPS/major.minor IPP/2.1".
418"Minimal" reports "CUPS/major.minor.patch IPP/2.1".
419"OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1".
420"Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1".
25d0c3fe 421The default is "Minimal".
37d9646b 422.\"#SSLListen
bd7854cb 423.TP 5
25d0c3fe 424\fBSSLListen \fIipv4-address\fB:\fIport\fR
ef416fc2 425.TP 5
25d0c3fe 426\fBSSLListen [\fIipv6-address\fB]:\fIport\fR
ef416fc2 427.TP 5
25d0c3fe
MS
428\fBSSLListen *:\fIport\fR
429Listens on the specified address and port for encrypted connections.
37d9646b 430.\"#SSLOptions
0af14961 431.TP 5
8f1fbdec
MS
432.TP 5
433\fBSSLOptions \fR[\fIAllowDH\fR] [\fIAllowRC4\fR] [\fIAllowSSL3\fR] [\fIDenyCBC\fR] [\fIDenyTLS1.0\fR] [\fIMaxTLS1.0\fR] [\fIMaxTLS1.1\fR] [\fIMaxTLS1.2\fR] [\fIMaxTLS1.3\fR] [\fIMinTLS1.0\fR] [\fIMinTLS1.1\fR] [\fIMinTLS1.2\fR] [\fIMinTLS1.3\fR]
63aefcd5
MS
434.TP 5
435\fBSSLOptions None\fR
8f1fbdec 436Sets encryption options (only in /etc/cups/client.conf).
63aefcd5 437By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites.
02c88e67
MS
438Security is reduced when \fIAllow\fR options are used.
439Security is enhanced when \fIDeny\fR options are used.
440The \fIAllowDH\fR option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
441The \fIAllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients.
63aefcd5 442The \fIAllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
f2e87147
MS
443The \fIDenyCBC\fR option disables all CBC cipher suites.
444The \fIDenyTLS1.0\fR option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
dda99de9
MS
445The \fIMinTLS\fR options set the minimum TLS version to support.
446The \fIMaxTLS\fR options set the maximum TLS version to support.
8f1fbdec 447Not all operating systems support TLS 1.3 at this time.
37d9646b 448.\"#SSLPort
63aefcd5 449.TP 5
25d0c3fe
MS
450\fBSSLPort \fIport\fR
451Listens on the specified port for encrypted connections.
37d9646b 452.\"#StrictConformance
ef416fc2 453.TP 5
25d0c3fe 454\fBStrictConformance Yes\fR
ef416fc2 455.TP 5
25d0c3fe
MS
456\fBStrictConformance No\fR
457Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications.
458The default is "No".
37d9646b 459.\"#Timeout
ef416fc2 460.TP 5
25d0c3fe
MS
461\fBTimeout \fIseconds\fR
462Specifies the HTTP request timeout.
f49af670 463The default is "900" (15 minutes).
37d9646b 464.\"#WebInterface
ef416fc2 465.TP 5
25d0c3fe 466\fBWebInterface yes\fR
ef416fc2 467.TP 5
25d0c3fe
MS
468\fBWebInterface no\fR
469Specifies whether the web interface is enabled.
470The default is "No".
471.SS HTTP METHOD NAMES
472The following HTTP methods are supported by
473.BR cupsd (8):
ef416fc2 474.TP 5
25d0c3fe
MS
475GET
476Used by a client to download icons and other printer resources and to access the CUPS web interface.
88f9aafc 477.TP 5
25d0c3fe
MS
478HEAD
479Used by a client to get the type, size, and modification date of resources.
e07d4801 480.TP 5
25d0c3fe
MS
481OPTIONS
482Used by a client to establish a secure (SSL/TLS) connection.
ef416fc2 483.TP 5
25d0c3fe
MS
484POST
485Used by a client to submit IPP requests and HTML forms from the CUPS web interface.
bd7854cb 486.TP 5
25d0c3fe
MS
487PUT
488Used by a client to upload configuration files.
489.SS IPP OPERATION NAMES
490The following IPP operations are supported by
491.BR cupsd (8):
bd7854cb 492.TP 5
25d0c3fe
MS
493CUPS\-Accept\-Jobs
494Allows a printer to accept new jobs.
bd7854cb 495.TP 5
25d0c3fe
MS
496CUPS\-Add\-Modify\-Class
497Adds or modifies a printer class.
bd7854cb 498.TP 5
25d0c3fe
MS
499CUPS\-Add\-Modify\-Printer
500Adds or modifies a printer.
bd7854cb 501.TP 5
25d0c3fe
MS
502CUPS\-Authenticate\-Job
503Releases a job that is held for authentication.
bd7854cb 504.TP 5
25d0c3fe
MS
505CUPS\-Delete\-Class
506Deletes a printer class.
ef416fc2 507.TP 5
25d0c3fe
MS
508CUPS\-Delete\-Printer
509Deletes a printer.
ef416fc2 510.TP 5
25d0c3fe
MS
511CUPS\-Get\-Classes
512Gets a list of printer classes.
ef416fc2 513.TP 5
25d0c3fe
MS
514CUPS\-Get\-Default
515Gets the server default printer or printer class.
ef416fc2 516.TP 5
25d0c3fe
MS
517CUPS\-Get\-Devices
518Gets a list of devices that are currently available.
a29fd7dd 519.TP 5
25d0c3fe
MS
520CUPS\-Get\-Document
521Gets a document file for a job.
a29fd7dd 522.TP 5
25d0c3fe
MS
523CUPS\-Get\-PPD
524Gets a PPD file.
e0660879 525.TP 5
25d0c3fe
MS
526CUPS\-Get\-PPDs
527Gets a list of installed PPD files.
e0660879 528.TP 5
25d0c3fe
MS
529CUPS\-Get\-Printers
530Gets a list of printers.
531.TP 5
532CUPS\-Move\-Job
533Moves a job.
534.TP 5
535CUPS\-Reject\-Jobs
536Prevents a printer from accepting new jobs.
537.TP 5
538CUPS\-Set\-Default
539Sets the server default printer or printer class.
540.TP 5
541Cancel\-Job
542Cancels a job.
543.TP 5
544Cancel\-Jobs
545Cancels one or more jobs.
546.TP 5
547Cancel\-My\-Jobs
548Cancels one or more jobs creates by a user.
549.TP 5
550Cancel\-Subscription
551Cancels a subscription.
552.TP 5
553Close\-Job
554Closes a job that is waiting for more documents.
555.TP 5
556Create\-Job
557Creates a new job with no documents.
558.TP 5
559Create\-Job\-Subscriptions
560Creates a subscription for job events.
561.TP 5
562Create\-Printer\-Subscriptions
563Creates a subscription for printer events.
564.TP 5
565Get\-Job\-Attributes
566Gets information about a job.
567.TP 5
568Get\-Jobs
569Gets a list of jobs.
570.TP 5
571Get\-Notifications
572Gets a list of event notifications for a subscription.
573.TP 5
574Get\-Printer\-Attributes
575Gets information about a printer or printer class.
576.TP 5
577Get\-Subscription\-Attributes
578Gets information about a subscription.
579.TP 5
580Get\-Subscriptions
581Gets a list of subscriptions.
582.TP 5
583Hold\-Job
584Holds a job from printing.
585.TP 5
586Hold\-New\-Jobs
587Holds all new jobs from printing.
588.TP 5
589Pause\-Printer
590Stops processing of jobs by a printer or printer class.
591.TP 5
592Pause\-Printer\-After\-Current\-Job
593Stops processing of jobs by a printer or printer class after the current job is finished.
594.TP 5
595Print\-Job
596Creates a new job with a single document.
597.TP 5
598Purge\-Jobs
599Cancels one or more jobs and deletes the job history.
600.TP 5
601Release\-Held\-New\-Jobs
602Allows previously held jobs to print.
603.TP 5
604Release\-Job
605Allows a job to print.
606.TP 5
607Renew\-Subscription
608Renews a subscription.
609.TP 5
610Restart\-Job
611Reprints a job, if possible.
612.TP 5
613Send\-Document
614Adds a document to a job.
615.TP 5
616Set\-Job\-Attributes
617Changes job information.
618.TP 5
619Set\-Printer\-Attributes
620Changes printer or printer class information.
621.TP 5
622Validate\-Job
623Validates options for a new job.
624.SS LOCATION PATHS
625The following paths are commonly used when configuring
626.BR cupsd (8):
627.TP 5
628/
629The path for all get operations (get-printers, get-jobs, etc.)
630.TP 5
631/admin
632The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
633.TP 5
634/admin/conf
635The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
636.TP 5
637/admin/log
638The path for access to the CUPS log files (access_log, error_log, page_log)
639.TP 5
640/classes
641The path for all printer classes
642.TP 5
643/classes/name
644The resource for the named printer class
645.TP 5
646/jobs
647The path for all jobs (hold-job, release-job, etc.)
648.TP 5
649/jobs/id
adffc545 650The path for the specified job
25d0c3fe
MS
651.TP 5
652/printers
653The path for all printers
654.TP 5
655/printers/name
656The path for the named printer
657.TP 5
658/printers/name.png
659The icon file path for the named printer
660.TP 5
661/printers/name.ppd
662The PPD file path for the named printer
663.SS DIRECTIVES VALID WITHIN LOCATION AND LIMIT SECTIONS
664The following directives may be placed inside Location and Limit sections in the \fBcupsd.conf\fR file:
665.TP 5
666\fBAllow all\fR
667.TP 5
668\fBAllow none\fR
669.TP 5
670\fBAllow \fIhost.domain.com\fR
671.TP 5
672\fBAllow *.\fIdomain.com\fR
673.TP 5
674\fBAllow \fIipv4-address\fR
675.TP 5
676\fBAllow \fIipv4-address\fB/\fInetmask\fR
677.TP 5
678\fBAllow \fIipv4-address\fB/\fImm\fR
e0660879 679.TP 5
25d0c3fe 680\fBAllow [\fIipv6-address\fB]\fR
e0660879 681.TP 5
25d0c3fe 682\fBAllow [\fIipv6-address\fB]/\fImm\fR
e0660879 683.TP 5
25d0c3fe 684\fBAllow @IF(\fIname\fB)\fR
e0660879 685.TP 5
25d0c3fe
MS
686\fBAllow @LOCAL\fR
687Allows access from the named hosts, domains, addresses, or interfaces.
242b4b9b
MS
688The @IF(name) form uses the current subnets configured for the named interface.
689The @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.
25d0c3fe 690The Order directive controls whether Allow lines are evaluated before or after Deny lines.
e0660879 691.TP 5
25d0c3fe 692\fBAuthType None\fR
e0660879 693.TP 5
25d0c3fe 694\fBAuthType Basic\fR
e0660879 695.TP 5
25d0c3fe 696\fBAuthType Default\fR
e0660879 697.TP 5
25d0c3fe
MS
698\fBAuthType Negotiate\fR
699Specifies the type of authentication required.
700The value "Default" corresponds to the DefaultAuthType value.
e0660879 701.TP 5
25d0c3fe 702\fBDeny all\fR
e0660879 703.TP 5
25d0c3fe 704\fBDeny none\fR
e0660879 705.TP 5
25d0c3fe 706\fBDeny \fIhost.domain.com\fR
e0660879 707.TP 5
25d0c3fe 708\fBDeny *.\fIdomain.com\fR
e0660879 709.TP 5
25d0c3fe 710\fBDeny \fIipv4-address\fR
e0660879 711.TP 5
25d0c3fe 712\fBDeny \fIipv4-address\fB/\fInetmask\fR
e0660879 713.TP 5
25d0c3fe 714\fBDeny \fIipv4-address\fB/\fImm\fR
e0660879 715.TP 5
25d0c3fe 716\fBDeny [\fIipv6-address\fB]\fR
e0660879 717.TP 5
25d0c3fe 718\fBDeny [\fIipv6-address\fB]/\fImm\fR
e0660879 719.TP 5
25d0c3fe 720\fBDeny @IF(\fIname\fB)\fR
e0660879 721.TP 5
25d0c3fe
MS
722\fBDeny @LOCAL\fR
723Denies access from the named hosts, domains, addresses, or interfaces.
242b4b9b
MS
724The @IF(name) form uses the current subnets configured for the named interface.
725The @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.
25d0c3fe 726The Order directive controls whether Deny lines are evaluated before or after Allow lines.
e0660879 727.TP 5
25d0c3fe 728\fBEncryption IfRequested\fR
e0660879 729.TP 5
25d0c3fe 730\fBEncryption Never\fR
e0660879 731.TP 5
25d0c3fe
MS
732\fBEncryption Required\fR
733Specifies the level of encryption that is required for a particular location.
734The default value is "IfRequested".
e0660879 735.TP 5
25d0c3fe
MS
736\fBOrder allow,deny\fR
737Specifies 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.
e0660879 738.TP 5
25d0c3fe
MS
739\fBOrder deny,allow\fR
740Specifies 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.
e0660879 741.TP 5
25d0c3fe
MS
742\fBRequire group \fIgroup-name \fR[ \fIgroup-name \fR... ]
743Specifies that an authenticated user must be a member of one of the named groups.
e0660879 744.TP 5
25d0c3fe
MS
745\fBRequire user {\fIuser-name\fR|\fB@\fIgroup-name\fR} ...
746Specifies that an authenticated user must match one of the named users or be a member of one of the named groups.
747The group name "@SYSTEM" corresponds to the list of groups defined by the SystemGroup directive in the
748.BR cups-files.conf (5)
749file.
750The group name "@OWNER" corresponds to the owner of the resource, for example the person that submitted a print job.
f80e6f38 751Note: The 'root' user is not special and must be granted privileges like any other user account.
e0660879 752.TP 5
25d0c3fe
MS
753\fBRequire valid-user\fR
754Specifies that any authenticated user is acceptable.
e0660879 755.TP 5
25d0c3fe
MS
756\fBSatisfy all\fR
757Specifies that all Allow, AuthType, Deny, Order, and Require conditions must be satisfied to allow access.
e0660879 758.TP 5
25d0c3fe
MS
759\fBSatisfy any\fR
760Specifies that any a client may access a resource if either the authentication (AuthType/Require) or address (Allow/Deny/Order) conditions are satisfied.
761For example, this can be used to require authentication only for remote accesses.
762.SS DIRECTIVES VALID WITHIN POLICY SECTIONS
763The following directives may be placed inside Policy sections in the \fBcupsd.conf\fR file:
e0660879 764.TP 5
25d0c3fe 765\fBJobPrivateAccess all\fR
e0660879 766.TP 5
25d0c3fe 767\fBJobPrivateAccess default\fR
e0660879 768.TP 5
25d0c3fe
MS
769\fBJobPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
770Specifies an access list for a job's private values.
771The "default" access list is "@OWNER @SYSTEM".
772"@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
773"@OWNER" maps to the job's owner.
774"@SYSTEM" maps to the groups listed for the SystemGroup directive in the
775.BR cups-files.conf (5)
776file.
e0660879 777.TP 5
25d0c3fe 778\fBJobPrivateValues all\fR
e0660879 779.TP 5
25d0c3fe 780\fBJobPrivateValues default\fR
e0660879 781.TP 5
25d0c3fe 782\fBJobPrivateValues none\fR
e0660879 783.TP 5
25d0c3fe
MS
784\fBJobPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR]
785Specifies the list of job values to make private.
786The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".
e0660879 787.TP 5
25d0c3fe 788\fBSubscriptionPrivateAccess all\fR
10d09e33 789.TP 5
25d0c3fe 790\fBSubscriptionPrivateAccess default\fR
10d09e33 791.TP 5
25d0c3fe
MS
792\fBSubscriptionPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
793Specifies an access list for a subscription's private values.
794The "default" access list is "@OWNER @SYSTEM".
795"@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
796"@OWNER" maps to the job's owner.
797"@SYSTEM" maps to the groups listed for the SystemGroup directive in the
798.BR cups-files.conf (5)
799file.
10d09e33 800.TP 5
25d0c3fe 801\fBSubscriptionPrivateValues all\fR
10d09e33 802.TP 5
25d0c3fe 803\fBSubscriptionPrivateValues default\fR
10d09e33 804.TP 5
25d0c3fe 805\fBSubscriptionPrivateValues none\fR
10d09e33 806.TP 5
25d0c3fe
MS
807\fBSubscriptionPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR]
808Specifies the list of subscription values to make private.
809The "default" values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data".
7c7347a3
MS
810.SS DEPRECATED DIRECTIVES
811The following directives are deprecated and will be removed in a future release of CUPS:
812.\"#Classification
813.TP 5
814\fBClassification \fIbanner\fR
815.br
816Specifies the security classification of the server.
817Any valid banner name can be used, including "classified", "confidential", "secret", "topsecret", and "unclassified", or the banner can be omitted to disable secure printing functions.
818The default is no classification banner.
819.\"#ClassifyOverride
820.TP 5
821\fBClassifyOverride Yes\fR
822.TP 5
823\fBClassifyOverride No\fR
824.br
825Specifies whether users may override the classification (cover page) of individual print jobs using the "job-sheets" option.
826The default is "No".
827.\"#PageLogFormat
828.TP 5
829\fBPageLogFormat \fIformat-string\fR
830Specifies the format of PageLog lines.
831Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally.
832The following percent sequences are recognized:
833.nf
834
835 "%%" inserts a single percent character.
836 "%{name}" inserts the value of the specified IPP attribute.
837 "%C" inserts the number of copies for the current page.
838 "%P" inserts the current page number.
839 "%T" inserts the current date and time in common log format.
840 "%j" inserts the job ID.
841 "%p" inserts the printer name.
842 "%u" inserts the username.
843
844.fi
845The default is the empty string, which disables page logging.
846The 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.
7be499d2 847Use "%{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.
7c7347a3
MS
848.\"#RIPCache
849.TP 5
850\fBRIPCache \fIsize\fR
851Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer.
852The default is "128m".
ee347e17
MS
853.SH NOTES
854File, directory, and user configuration directives that used to be allowed in the \fBcupsd.conf\fR file are now stored in the
855.BR cups-files.conf (5)
856file instead in order to prevent certain types of privilege escalation attacks.
857.PP
858The scheduler MUST be restarted manually after making changes to the \fBcupsd.conf\fR file.
859On Linux this is typically done using the
860.BR systemctl (8)
861command, while on macOS the
862.BR launchctl (8)
863command is used instead.
242b4b9b
MS
864.PP
865The @LOCAL macro name can be confusing since the system running
866.B cupsd
867often belongs to a different set of subnets from its clients.
25d0c3fe
MS
868.SH CONFORMING TO
869The \fBcupsd.conf\fR file format is based on the Apache HTTP Server configuration file format.
870.SH EXAMPLES
871Log everything with a maximum log file size of 32 megabytes:
872.nf
873
874 AccessLogLevel all
875 LogLevel debug2
876 MaxLogSize 32m
877
878.fi
879Require authentication for accesses from outside the 10. network:
880.nf
881
882 <Location />
883 Order allow,deny
884 Allow from 10./8
885 AuthType Basic
886 Require valid-user
887 Satisfy any
888 </Location>
889.fi
ef416fc2 890.SH SEE ALSO
25d0c3fe
MS
891.BR classes.conf (5),
892.BR cups-files.conf (5),
893.BR cupsd (8),
894.BR mime.convs (5),
895.BR mime.types (5),
896.BR printers.conf (5),
897.BR subscriptions.conf (5),
898CUPS Online Help (http://localhost:631/help)
ef416fc2 899.SH COPYRIGHT
87030afb 900Copyright \[co] 2007-2019 by Apple Inc.