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