4 .\" cupsd.conf man page for CUPS.
6 .\" Copyright 2007-2014 by Apple Inc.
7 .\" Copyright 1997-2006 by Easy Software Products.
9 .\" These coded instructions, statements, and computer programs are the
10 .\" property of Apple Inc. and are protected by Federal copyright
11 .\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 .\" which should have been included with this file. If this file is
13 .\" file is missing or damaged, see the license at "http://www.cups.org/".
15 .TH cupsd.conf 5 "CUPS" "20 October 2014" "Apple Inc."
17 cupsd.conf \- server configuration file for cups
21 file configures the CUPS scheduler,
23 It is normally located in the
26 \fBNote:\fR File, directory, and user configuration directives that used to be allowed in the \fBcupsd.conf\fR file are now stored in the
27 .BR cups-files.conf (5)
28 file instead in order to prevent certain types of privilege escalation attacks.
30 Each line in the file can be a configuration directive, a blank line, or a comment.
31 Configuration directives typically consist of a name and zero or more values separated by whitespace.
32 The configuration directive name and values are case-insensitive.
33 Comment lines start with the # character.
34 .SS TOP-LEVEL DIRECTIVES
35 The following top-level directives are understood by
39 \fBAccessLogLevel config\fR
41 \fBAccessLogLevel actions\fR
43 \fBAccessLogLevel all\fR
44 Specifies the logging level for the AccessLog file.
45 The "config" level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated.
46 The "actions" level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for "config".
47 The "all" level logs all requests.
48 The default access log level is "actions".
51 \fBAutoPurgeJobs Yes\fR
53 \fBAutoPurgeJobs No\fR
55 Specifies whether to purge job history data automatically when it is no longer required for quotas.
57 .\"#BrowseLocalProtocols
59 \fBBrowseLocalProtocols all\fR
61 \fBBrowseLocalProtocols dnssd\fR
63 \fBBrowseLocalProtocols none\fR
64 Specifies which protocols to use for local printer sharing.
65 The default is "dnssd" on systems that support Bonjour and "none" otherwise.
72 Specifies whether the CUPS web interface is advertised.
80 Specifies whether shared printers are advertised.
84 \fBClassification \fIbanner\fR
86 Specifies the security classification of the server.
87 Any valid banner name can be used, including "classified", "confidential", "secret", "topsecret", and "unclassified", or the banner can be omitted to disable secure printing functions.
88 The default is no classification banner.
91 \fBClassifyOverride Yes\fR
93 \fBClassifyOverride No\fR
95 Specifies whether users may override the classification (cover page) of individual print jobs using the "job-sheets" option.
99 \fBDefaultAuthType Basic\fR
101 \fBDefaultAuthType Negotiate\fR
103 Specifies the default type of authentication to use.
104 The default is "Basic".
105 .\"#DefaultEncryption
107 \fBDefaultEncryption Never\fR
109 \fBDefaultEncryption IfRequested\fR
111 \fBDefaultEncryption Required\fR
112 Specifies whether encryption will be used for authenticated requests.
113 The default is "Required".
116 \fBDefaultLanguage \fIlocale\fR
117 Specifies the default language to use for text and web content.
121 \fBDefaultPaperSize Auto\fR
123 \fBDefaultPaperSize None\fR
125 \fBDefaultPaperSize \fIsizename\fR
126 Specifies the default paper size for new print queues. "Auto" uses a locale-specific default, while "None" specifies there is no default paper size.
127 Specific size names are typically "Letter" or "A4".
128 The default is "Auto".
131 \fBDefaultPolicy \fIpolicy-name\fR
132 Specifies the default access policy to use.
133 The default access policy is "default".
136 \fBDefaultShared Yes\fR
138 \fBDefaultShared No\fR
139 Specifies whether local printers are shared by default.
140 The default is "Yes".
141 .\"#DirtyCleanInterval
143 \fBDirtyCleanInterval \fIseconds\fR
144 Specifies the delay for updating of configuration and state files.
145 A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds.
146 The default value is "30".
149 \fBErrorPolicy abort-job\fR
150 Specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer.
152 \fBErrorPolicy retry-job\fR
153 Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.
155 \fBErrorPolicy retry-this-job\fR
156 Specifies that a failed print job should be retried immediately unless otherwise specified for the printer.
158 \fBErrorPolicy stop-printer\fR
159 Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
162 \fBFilterLimit \fIlimit\fR
163 Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems.
164 A limit of 0 disables filter limiting.
165 An average print to a non-PostScript printer needs a filter limit of about 200.
166 A PostScript printer needs about half that (100).
167 Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time.
168 The default limit is "0".
171 \fBFilterNice \fInice-value\fR
172 Specifies the scheduling priority (
174 value) of filters that are run to print a job.
175 The nice value ranges from 0, the highest priority, to 19, the lowest priority.
179 \fBGSSServiceName \fIname\fR
180 Specifies the service name when using Kerberos authentication.
181 The default service name is "http."
184 \fBHostNameLookups On\fR
186 \fBHostNameLookups Off\fR
188 \fBHostNameLookups Double\fR
189 Specifies whether to do reverse lookups on connecting clients.
190 The "Double" setting causes
192 to verify that the hostname resolved from the address matches one of the addresses returned for that hostname.
193 Double lookups also prevent clients with unregistered addresses from connecting to your server.
194 The default is "Off" to avoid the potential server performance problems with hostname lookups.
195 Only set this option to "On" or "Double" if absolutely required.
198 \fBJobKillDelay \fIseconds\fR
199 Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job.
203 \fBJobRetryInterval \fIseconds\fR
204 Specifies the interval between retries of jobs in seconds.
205 This 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".
209 \fBJobRetryLimit \fIcount\fR
210 Specifies the number of retries that are done for jobs.
211 This 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".
218 Specifies whether to support HTTP keep-alive connections.
219 The default is "Yes".
222 \fBKeepAliveTimeout \fIseconds\fR
223 Specifies how long an idle client connection remains open.
227 \fB<Limit \fIoperation \fR...\fB> \fR... \fB</Limit>\fR
228 Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section "IPP OPERATIONS".
231 \fB<Limit \fImethod \fR...\fB> \fR... \fB</Limit>\fR
234 \fB<LimitExcept \fImethod \fR...\fB> \fR... \fB</LimitExcept>\fR
235 Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section "HTTP METHODS".
238 \fBLimitRequestBody \fIsize\fR
239 Specifies the maximum size of print files, IPP requests, and HTML form data.
240 The default is "0" which disables the limit check.
243 \fBListen \fIipv4-address\fB:\fIport\fR
245 \fBListen [\fIipv6-address\fB]:\fIport\fR
247 \fBListen *:\fIport\fR
249 \fBListen \fI/path/to/domain/socket\fR
250 Listens to the specified address and port or domain socket path for connections.
251 Multiple Listen directives can be provided to listen on multiple addresses.
252 The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks.
255 \fBListenBackLog \fInumber\fR
256 Specifies the number of pending connections that will be allowed.
257 This normally only affects very busy servers that have reached the MaxClients limit, but can also be triggered by large numbers of simultaneous connections.
258 When the limit is reached, the operating system will refuse additional connections until the scheduler can accept the pending ones.
259 The default is the OS-defined default limit, typically either "5" for older operating systems or "128" for newer operating systems.
262 \fB<Location \fI/path\fB> \fR... \fB</Location>\fR
263 Specifies access control for the named location.
264 Paths are documented below in the section "LOCATION PATHS".
267 \fBLogDebugHistory \fInumber\fR
268 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.
283 \fBLogLevel \fRnotice
289 \fBLogLevel \fRdebug2
290 Specifies the level of logging for the ErrorLog file.
291 The value "none" stops all logging while "debug2" logs everything.
292 The default is "warn".
295 \fBLogTimeFormat \fRstandard
297 \fBLogTimeFormat \fRusecs
298 Specifies the format of the date and time in the log files.
299 The value "standard" is the default and logs whole seconds while "usecs" logs microseconds.
302 \fBMaxClients \fInumber\fR
303 Specifies the maximum number of simultaneous clients that are allowed by the scheduler.
304 The default is "100".
307 \fBMaxClientsPerHost \fInumber\fR
308 Specifies the maximum number of simultaneous clients that are allowed from a
310 The default is the MaxClients value.
313 \fBMaxCopies \fInumber\fR
314 Specifies the maximum number of copies that a user can print of each job.
315 The default is "9999".
318 \fBMaxHoldTime \fIseconds\fR
319 Specifies the maximum time a job may remain in the "indefinite" hold state before it is canceled.
320 The default is "0" which disables cancellation of held jobs.
323 \fBMaxJobs \fInumber\fR
324 Specifies the maximum number of simultaneous jobs that are allowed.
325 Set to "0" to allow an unlimited number of jobs.
326 The default is "500".
327 .\"#MaxJobsPerPrinter
329 \fBMaxJobsPerPrinter \fInumber\fR
330 Specifies the maximum number of simultaneous jobs that are allowed per printer.
331 The default is "0" which allows up to MaxJobs jobs per printer.
334 \fBMaxJobsPerUser \fInumber\fR
335 Specifies the maximum number of simultaneous jobs that are allowed per user.
336 The default is "0" which allows up to MaxJobs jobs per user.
339 \fBMaxJobTime \fIseconds\fR
340 Specifies the maximum time a job may take to print before it is canceled.
341 Set to "0" to disable cancellation of "stuck" jobs.
342 The default is "10800" (3 hours).
345 \fBMaxLogSize \fIsize\fR
346 Specifies the maximum size of the log files before they are rotated.
347 The value "0" disables log rotation.
348 The default is "1048576" (1MB).
349 .\"#MultipleOperationTimeout
351 \fBMultipleOperationTimeout \fIseconds\fR
352 Specifies the maximum amount of time to allow between files in a multiple file print job.
353 The default is "300" (5 minutes).
356 \fBPageLogFormat \fIformat-string\fR
357 Specifies the format of PageLog lines.
358 Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally.
359 The following percent sequences are recognized:
362 "%%" inserts a single percent character.
363 "%{name}" inserts the value of the specified IPP attribute.
364 "%C" inserts the number of copies for the current page.
365 "%P" inserts the current page number.
366 "%T" inserts the current date and time in common log format.
367 "%j" inserts the job ID.
368 "%p" inserts the printer name.
369 "%u" inserts the username.
372 The default is "%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}".
375 \fBPassEnv \fIvariable \fR[ ... \fIvariable \fR]
376 Passes the specified environment variable(s) to child processes.
379 \fB<Policy \fIname\fB> \fR... \fB</Policy>\fR
380 Specifies access control for the named policy.
384 Listens to the specified port number for connections.
387 \fBPreserveJobFiles Yes\fR
389 \fBPreserveJobFiles No\fR
391 \fBPreserveJobFiles \fIseconds\fR
392 Specifies whether job files (documents) are preserved after a job is printed.
393 If a numeric value is specified, job files are preserved for the indicated number of seconds after printing.
394 The default is "86400" (preserve 1 day).
395 .\"#PreserveJobHistory
397 \fBPreserveJobHistory Yes\fR
399 \fBPreserveJobHistory No\fR
401 \fBPreserveJobHistory \fIseconds\fR
402 Specifies whether the job history is preserved after a job is printed.
403 If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing.
404 If "Yes", the job history is preserved until the MaxJobs limit is reached.
405 The default is "Yes".
408 \fBReloadTimeout \fIseconds\fR
409 Specifies the amount of time to wait for job completion before restarting the scheduler.
413 \fBRIPCache \fIsize\fR
414 Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer.
415 The default is "128m".
418 \fBServerAdmin \fIemail-address\fR
419 Specifies the email address of the server administrator.
420 The default value is "root@ServerName".
423 \fBServerAlias \fIhostname \fR[ ... \fIhostname \fR]
426 The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces.
427 Using the special name "*" can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall.
428 If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using "*".
431 \fBServerName \fIhostname\fR
432 Specifies the fully-qualified hostname of the server.
433 The default is the value reported by the
438 \fBServerTokens None\fR
440 \fBServerTokens ProductOnly\fR
442 \fBServerTokens Major\fR
444 \fBServerTokens Minor\fR
446 \fBServerTokens Minimal\fR
448 \fBServerTokens OS\fR
450 \fBServerTokens Full\fR
451 Specifies what information is included in the Server header of HTTP responses.
452 "None" disables the Server header.
453 "ProductOnly" reports "CUPS".
454 "Major" reports "CUPS 2".
455 "Minor" reports "CUPS 2.0".
456 "Minimal" reports "CUPS 2.0.0".
457 "OS" reports "CUPS 2.0.0 (UNAME)" where UNAME is the output of the
460 "Full" reports "CUPS 2.0.0 (UNAME) IPP/2.0".
461 The default is "Minimal".
464 \fBSetEnv \fIvariable value\fR
465 Set the specified environment variable to be passed to child processes.
468 \fBSSLListen \fIipv4-address\fB:\fIport\fR
470 \fBSSLListen [\fIipv6-address\fB]:\fIport\fR
472 \fBSSLListen *:\fIport\fR
473 Listens on the specified address and port for encrypted connections.
476 \fBSSLOptions \fR[\fIAllowRC4\fR] [\fIAllowSSL3\fR]
478 \fBSSLOptions None\fR
479 Sets encryption options.
480 By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites.
481 The \fIAllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients that do not implement newer ones.
482 The \fIAllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
485 \fBSSLPort \fIport\fR
486 Listens on the specified port for encrypted connections.
487 .\"#StrictConformance
489 \fBStrictConformance Yes\fR
491 \fBStrictConformance No\fR
492 Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications.
496 \fBTimeout \fIseconds\fR
497 Specifies the HTTP request timeout.
498 The default is "300" (5 minutes).
501 \fBWebInterface yes\fR
503 \fBWebInterface no\fR
504 Specifies whether the web interface is enabled.
506 .SS HTTP METHOD NAMES
507 The following HTTP methods are supported by
511 Used by a client to download icons and other printer resources and to access the CUPS web interface.
514 Used by a client to get the type, size, and modification date of resources.
517 Used by a client to establish a secure (SSL/TLS) connection.
520 Used by a client to submit IPP requests and HTML forms from the CUPS web interface.
523 Used by a client to upload configuration files.
524 .SS IPP OPERATION NAMES
525 The following IPP operations are supported by
529 Allows a printer to accept new jobs.
531 CUPS\-Add\-Modify\-Class
532 Adds or modifies a printer class.
534 CUPS\-Add\-Modify\-Printer
535 Adds or modifies a printer.
537 CUPS\-Authenticate\-Job
538 Releases a job that is held for authentication.
541 Deletes a printer class.
543 CUPS\-Delete\-Printer
547 Gets a list of printer classes.
550 Gets the server default printer or printer class.
553 Gets a list of devices that are currently available.
556 Gets a document file for a job.
562 Gets a list of installed PPD files.
565 Gets a list of printers.
571 Prevents a printer from accepting new jobs.
574 Sets the server default printer or printer class.
580 Cancels one or more jobs.
583 Cancels one or more jobs creates by a user.
586 Cancels a subscription.
589 Closes a job that is waiting for more documents.
592 Creates a new job with no documents.
594 Create\-Job\-Subscriptions
595 Creates a subscription for job events.
597 Create\-Printer\-Subscriptions
598 Creates a subscription for printer events.
601 Gets information about a job.
607 Gets a list of event notifications for a subscription.
609 Get\-Printer\-Attributes
610 Gets information about a printer or printer class.
612 Get\-Subscription\-Attributes
613 Gets information about a subscription.
616 Gets a list of subscriptions.
619 Holds a job from printing.
622 Holds all new jobs from printing.
625 Stops processing of jobs by a printer or printer class.
627 Pause\-Printer\-After\-Current\-Job
628 Stops processing of jobs by a printer or printer class after the current job is finished.
631 Creates a new job with a single document.
634 Cancels one or more jobs and deletes the job history.
636 Release\-Held\-New\-Jobs
637 Allows previously held jobs to print.
640 Allows a job to print.
643 Renews a subscription.
646 Reprints a job, if possible.
649 Adds a document to a job.
652 Changes job information.
654 Set\-Printer\-Attributes
655 Changes printer or printer class information.
658 Validates options for a new job.
660 The following paths are commonly used when configuring
664 The path for all get operations (get-printers, get-jobs, etc.)
667 The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
670 The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
673 The path for access to the CUPS log files (access_log, error_log, page_log)
676 The path for all printer classes
679 The resource for the named printer class
682 The path for all jobs (hold-job, release-job, etc.)
685 The path for the specified job.
688 The path for all printers
691 The path for the named printer
694 The icon file path for the named printer
697 The PPD file path for the named printer
698 .SS DIRECTIVES VALID WITHIN LOCATION AND LIMIT SECTIONS
699 The following directives may be placed inside Location and Limit sections in the \fBcupsd.conf\fR file:
705 \fBAllow \fIhost.domain.com\fR
707 \fBAllow *.\fIdomain.com\fR
709 \fBAllow \fIipv4-address\fR
711 \fBAllow \fIipv4-address\fB/\fInetmask\fR
713 \fBAllow \fIipv4-address\fB/\fImm\fR
715 \fBAllow [\fIipv6-address\fB]\fR
717 \fBAllow [\fIipv6-address\fB]/\fImm\fR
719 \fBAllow @IF(\fIname\fB)\fR
722 Allows access from the named hosts, domains, addresses, or interfaces.
723 The Order directive controls whether Allow lines are evaluated before or after Deny lines.
729 \fBAuthType Default\fR
731 \fBAuthType Negotiate\fR
732 Specifies the type of authentication required.
733 The value "Default" corresponds to the DefaultAuthType value.
739 \fBDeny \fIhost.domain.com\fR
741 \fBDeny *.\fIdomain.com\fR
743 \fBDeny \fIipv4-address\fR
745 \fBDeny \fIipv4-address\fB/\fInetmask\fR
747 \fBDeny \fIipv4-address\fB/\fImm\fR
749 \fBDeny [\fIipv6-address\fB]\fR
751 \fBDeny [\fIipv6-address\fB]/\fImm\fR
753 \fBDeny @IF(\fIname\fB)\fR
756 Denies access from the named hosts, domains, addresses, or interfaces.
757 The Order directive controls whether Deny lines are evaluated before or after Allow lines.
759 \fBEncryption IfRequested\fR
761 \fBEncryption Never\fR
763 \fBEncryption Required\fR
764 Specifies the level of encryption that is required for a particular location.
765 The default value is "IfRequested".
767 \fBOrder allow,deny\fR
768 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.
770 \fBOrder deny,allow\fR
771 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.
773 \fBRequire group \fIgroup-name \fR[ \fIgroup-name \fR... ]
774 Specifies that an authenticated user must be a member of one of the named groups.
776 \fBRequire user {\fIuser-name\fR|\fB@\fIgroup-name\fR} ...
777 Specifies that an authenticated user must match one of the named users or be a member of one of the named groups.
778 The group name "@SYSTEM" corresponds to the list of groups defined by the SystemGroup directive in the
779 .BR cups-files.conf (5)
781 The group name "@OWNER" corresponds to the owner of the resource, for example the person that submitted a print job.
783 \fBRequire valid-user\fR
784 Specifies that any authenticated user is acceptable.
787 Specifies that all Allow, AuthType, Deny, Order, and Require conditions must be satisfied to allow access.
790 Specifies that any a client may access a resource if either the authentication (AuthType/Require) or address (Allow/Deny/Order) conditions are satisfied.
791 For example, this can be used to require authentication only for remote accesses.
792 .SS DIRECTIVES VALID WITHIN POLICY SECTIONS
793 The following directives may be placed inside Policy sections in the \fBcupsd.conf\fR file:
795 \fBJobPrivateAccess all\fR
797 \fBJobPrivateAccess default\fR
799 \fBJobPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
800 Specifies an access list for a job's private values.
801 The "default" access list is "@OWNER @SYSTEM".
802 "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
803 "@OWNER" maps to the job's owner.
804 "@SYSTEM" maps to the groups listed for the SystemGroup directive in the
805 .BR cups-files.conf (5)
808 \fBJobPrivateValues all\fR
810 \fBJobPrivateValues default\fR
812 \fBJobPrivateValues none\fR
814 \fBJobPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR]
815 Specifies the list of job values to make private.
816 The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".
818 \fBSubscriptionPrivateAccess all\fR
820 \fBSubscriptionPrivateAccess default\fR
822 \fBSubscriptionPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
823 Specifies an access list for a subscription's private values.
824 The "default" access list is "@OWNER @SYSTEM".
825 "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
826 "@OWNER" maps to the job's owner.
827 "@SYSTEM" maps to the groups listed for the SystemGroup directive in the
828 .BR cups-files.conf (5)
831 \fBSubscriptionPrivateValues all\fR
833 \fBSubscriptionPrivateValues default\fR
835 \fBSubscriptionPrivateValues none\fR
837 \fBSubscriptionPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR]
838 Specifies the list of subscription values to make private.
839 The "default" values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data".
841 The \fBcupsd.conf\fR file format is based on the Apache HTTP Server configuration file format.
843 Log everything with a maximum log file size of 32 megabytes:
851 Require authentication for accesses from outside the 10. network:
863 .BR classes.conf (5),
864 .BR cups-files.conf (5),
868 .BR printers.conf (5),
869 .BR subscriptions.conf (5),
870 CUPS Online Help (http://localhost:631/help)
872 Copyright \[co] 2007-2014 by Apple Inc.