cupsd.conf(5)
๐ cupsd.conf(5) ๐
the server configuration file for cups โ yes bestie, this is the manual page for cupsd.conf, and it's giving main character energy ๐
โจ
๐ธ NAME ๐ธ
cupsd.conf โ server configuration file for cups ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
okay so the cupsd.conf file configures the CUPS scheduler, cupsd(8). It's normally located in the /etc/cups directory. Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character. periodt ๐
โจ TOP-LEVEL DIRECTIVES โจ
The following top-level directives are understood by cupsd(8), bestie:
AccessLogLevel config,AccessLogLevel actions,AccessLogLevel allโ specifies the logging level for theAccessLogfile. The"config"level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated. The"actions"level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for"config". The"all"level logs all requests. The default access log level is"actions". ๐AutoPurgeJobs Yes,AutoPurgeJobs Noโ specifies whether to purge job history data automatically when it is no longer required for quotas. The default is"No". ๐งนBrowseDNSSDSubTypessubtype[,...]โ specifies a list of Bonjour sub-types to advertise for each shared printer. For example,"BrowseDNSSDSubTypes _cups,_print"will tell network clients that both CUPS sharing and IPP Everywhere are supported. The default is"_cups"which is necessary for printer sharing to work between systems using CUPS. ๐ฆBrowseLocalProtocols all,BrowseLocalProtocols dnssd,BrowseLocalProtocols noneโ specifies which protocols to use for local printer sharing. The default is"dnssd"on systems that support Bonjour and"none"otherwise. ๐BrowseWebIF Yes,BrowseWebIF Noโ specifies whether the CUPS web interface is advertised. The default is"No". ๐Browsing Yes,Browsing Noโ specifies whether shared printers are advertised. The default is"No". ๐DefaultAuthType Basicโ specifies the default type of authentication to use. The default is"Basic". ๐DefaultEncryption Never,DefaultEncryption IfRequested,DefaultEncryption Requiredโ specifies whether encryption will be used for authenticated requests. The default is"Required". ๐DefaultLanguagelocale โ specifies the default language to use for text and web content. The default is"en". ๐ฃ๏ธDefaultPaperSize Auto,DefaultPaperSize None,DefaultPaperSizesizename โ specifies the default paper size for new print queues."Auto"uses a locale-specific default, while"None"specifies there is no default paper size. Specific size names are typically"Letter"or"A4". The default is"Auto". Note: The default paper size must use a size name from the PPD file and not a PWG self-describing media size name. ๐DefaultPolicypolicy-name โ specifies the default access policy to use. The default access policy is"default". ๐DefaultShared Yes,DefaultShared Noโ specifies whether local printers are shared by default. The default is"Yes". ๐คDirtyCleanIntervalseconds โ specifies the delay for updating of configuration and state files. A value of0causes the update to happen as soon as possible, typically within a few milliseconds. The default value is"30". โฑ๏ธDNSSDHostNamehostname.example.com โ specifies the fully-qualified domain name for the server that is used for Bonjour sharing. The default is typically the server's".local"hostname. ๐ErrorPolicy abort-jobโ specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer.ErrorPolicy retry-current-jobโ specifies that a failed print job should be retried immediately unless otherwise specified for the printer.ErrorPolicy retry-jobโ specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.ErrorPolicy stop-printerโ specifies that a failed print job should stop the printer unless otherwise specified for the printer. The'stop-printer'error policy is the default. ๐FilterLimitlimit โ specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems. A limit of0disables filter limiting. An average print to a non-PostScript printer needs a filter limit of about200. A PostScript printer needs about half that (100). Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time. The default limit is"0". ๐ฅFilterNicenice-value โ specifies the scheduling priority (nice(8)value) of filters that are run to print a job. The nice value ranges from0, the highest priority, to19, the lowest priority. The default is0. ๐งHostNameLookups On,HostNameLookups Off,HostNameLookups Doubleโ specifies whether to do reverse lookups on connecting clients. The"Double"setting causescupsd(8)to verify that the hostname resolved from the address matches one of the addresses returned for that hostname. Double lookups also prevent clients with unregistered addresses from connecting to your server. The default is"Off"to avoid the potential server performance problems with hostname lookups. Only set this option to"On"or"Double"if absolutely required. ๐IdleExitTimeoutseconds โ specifies the length of time to wait before shutting down due to inactivity. The default is"60"seconds. Note: Only applicable whencupsd(8)is run on-demand (e.g., with-l). ๐คJobKillDelayseconds โ specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job. The default is"300". ๐JobRetryIntervalseconds โ specifies the interval between retries of jobs in seconds. This is typically used for fax queues but can also be used with normal print queues whose error policy is"retry-job". The default is"300". ๐JobRetryLimitcount โ specifies the number of retries that are done for jobs. This is typically used for fax queues but can also be used with normal print queues whose error policy is"retry-job". The default is"5". ๐ขKeepAlive Yes,KeepAlive Noโ specifies whether to support HTTP keep-alive connections. The default is"Yes". ๐<Limit operation ...> ... </Limit>โ specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section"IPP OPERATION NAMES". ๐<Limit method ...> ... </Limit>,<LimitExcept method ...> ... </LimitExcept>โ specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section"HTTP METHOD NAMES". ๐LimitRequestBodysize โ specifies the maximum size of print files, IPP requests, and HTML form data. The default is"0"which disables the limit check. ๐ฆListenipv4-address:port /Listen[ipv6-address]:port /Listen *:port/Listen /path/to/domain/socketโ Listens to the specified address and port or domain socket path for connections. MultipleListendirectives can be provided to listen on multiple addresses. TheListendirective is similar to thePortdirective but allows you to restrict access to specific interfaces or networks. Note:"Listen *:port"and"Port port"effectively listen on all IP addresses, so you cannot combine them withListendirectives for explicit IPv4 or IPv6 addresses on the same port. ๐<Location /path> ... </Location>โ specifies access control for the named location. Paths are documented below in the section"LOCATION PATHS". ๐LogDebugHistorynumber โ 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 theLogLevelsetting. ๐LogLevel none,LogLevel emerg,LogLevel alert,LogLevel crit,LogLevel error,LogLevel warn,LogLevel notice,LogLevel info,LogLevel debug,LogLevel debug2โ specifies the level of logging for theErrorLogfile. The value"none"stops all logging while"debug2"logs everything. The default is"warn". ๐LogTimeFormat standard,LogTimeFormat usecsโ specifies the format of the date and time in the log files. The value"standard"is the default and logs whole seconds while"usecs"logs microseconds. โฐMaxClientsnumber โ specifies the maximum number of simultaneous clients that are allowed by the scheduler. The default is"100". ๐ฅMaxClientsPerHostnumber โ specifies the maximum number of simultaneous clients that are allowed from a single address. The default is theMaxClientsvalue. ๐MaxCopiesnumber โ specifies the maximum number of copies that a user can print of each job. The default is"9999". ๐MaxHoldTimeseconds โ specifies the maximum time a job may remain in the"indefinite"hold state before it is canceled. The default is"0"which disables cancellation of held jobs. โณMaxJobsnumber โ specifies the maximum number of simultaneous jobs that are allowed. Set to"0"to allow an unlimited number of jobs. The default is"500". ๐ผMaxJobsPerPrinternumber โ specifies the maximum number of simultaneous jobs that are allowed per printer. The default is"0"which allows up toMaxJobsjobs per printer. ๐จ๏ธMaxJobsPerUsernumber โ specifies the maximum number of simultaneous jobs that are allowed per user. The default is"0"which allows up toMaxJobsjobs per user. ๐คMaxJobTimeseconds โ specifies the maximum time a job may take to print before it is canceled. Set to"0"to disable cancellation of"stuck"jobs. The default is"10800"(3 hours). โฒ๏ธMaxLogSizesize โ specifies the maximum size of the log files before they are rotated. The value"0"disables log rotation. The default is"1048576"(1MB). ๐๏ธMaxSubscriptions numberโ Okay so this sets the max number of simultaneous event subscriptions allowed. Set it to"0"to allow unlimited subscriptions. Default is"100". โจMaxSubscriptionsPerJob numberโ Max simultaneous event subscriptions per job. Default is"0", which lowkey means up toMaxSubscriptionssubscriptions per job. ๐MaxSubscriptionsPerPrinter numberโ Max simultaneous event subscriptions per printer. Default is"0", which means up toMaxSubscriptionssubscriptions per printer. ๐จ๏ธMaxSubscriptionsPerUser numberโ Max simultaneous event subscriptions per user. Default is"0", which means up toMaxSubscriptionssubscriptions per user. ๐คMultipleOperationTimeout secondsโ Max time to allow between files in a multiple file print job. Default is"900"(15 minutes). โณ<Policy name> ... </Policy>โ Specifies access control for the named policy. ๐ก๏ธPort numberโ Listens on the specified port number for connections. ๐PreserveJobFiles YesPreserveJobFiles NoPreserveJobFiles secondsโ Specifies whether job files (documents) are preserved after a job is printed. If a numeric value is specified, job files are preserved for the indicated number of seconds after printing. Default is"86400"(preserve 1 day). ๐พPreserveJobHistory YesPreserveJobHistory NoPreserveJobHistory secondsโ Specifies whether job history is preserved after a job is printed. If a numeric value is specified, job history is preserved for the indicated number of seconds after printing. If"Yes", job history is preserved until theMaxJobslimit is reached. Default is"Yes". ๐ReadyPaperSizes sizename[,...]โ Specifies a list of potential paper sizes that are reported as"ready"(loaded). The actual list will only contain sizes that each printer supports. Default is"Letter,Legal,Tabloid,4x6,Env10"when the default paper size is"Letter"and"A3,A4,A5,A6,EnvDL"otherwise. > Note: Paper sizes must use the size names from the PPD file and not PWG self-describing media size names. ๐ReloadTimeout secondsโ Specifies the amount of time to wait for job completion before restarting the scheduler. Default is"30". ๐ServerAdmin email-addressโ Specifies the email address of the server administrator. Default value is"root@ServerName". ๐งServerAlias hostname [ ... hostname ]ServerAlias *โ TheServerAliasdirective is used for HTTP Host header validation when clients connect to the scheduler from external interfaces. Using the special name"*"can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall. If the auto-discovery of alternate names does not work, we recommend listing each alternate name with aServerAliasdirective instead of using"*". ๐จServerName hostnameโ Specifies the fully-qualified hostname of the server. Default is the value reported by thehostname(1)command. ๐ServerTokens None,ServerTokens ProductOnly,ServerTokens Major,ServerTokens Minor,ServerTokens Minimal,ServerTokens OS,ServerTokens Fullโ Specifies what information is included in theServerheader of HTTP responses."None"disables theServerheader."ProductOnly"reports"CUPS"."Major"reports"CUPS/major IPP/2"."Minor"reports"CUPS/major.minor IPP/2.1"."Minimal"reports"CUPS/major.minor.patch IPP/2.1"."OS"reports"CUPS/major.minor.path (osname osversion) IPP/2.1"."Full"reports"CUPS/major.minor.path (osname osversion; architecture) IPP/2.1". Default is"Minimal". ๐ท๏ธSSLListen ipv4-address:portSSLListen [ipv6-address]:portSSLListen *:portโ Listens on the specified address and port for encrypted connections. ๐SSLOptions [AllowDH] [AllowRC4] [AllowSSL3] [DenyCBC] [DenyTLS1.0] [MaxTLS1.0] [MaxTLS1.1] [MaxTLS1.2] [MaxTLS1.3] [MinTLS1.0] [MinTLS1.1] [MinTLS1.2] [MinTLS1.3] [NoSystem]orSSLOptions Noneโ Sets encryption options (only in/etc/cups/client.conf). By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites. Security is reduced when Allow options are used. Security is enhanced when Deny options are used. TheAllowDHoption enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS). TheAllowRC4option enables the 128-bit RC4 cipher suites, which are required for some older clients. TheAllowSSL3option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0. TheDenyCBCoption disables all CBC cipher suites. TheDenyTLS1.0option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1. TheMinTLSoptions set the minimum TLS version to support. TheMaxTLSoptions set the maximum TLS version to support. TheNoSystemoption disables applying system cryptographic policy. Not all operating systems support TLS 1.3 at this time. ๐SSLPort portโ Listens on the specified port for encrypted connections. ๐StrictConformance YesStrictConformance Noโ Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications. Default is"No". ๐Timeout secondsโ Specifies the HTTP request timeout. Default is"900"(15 minutes). โฐWebInterface yesWebInterface noโ Specifies whether the web interface is enabled. Default is"No". ๐
๐ HTTP METHOD NAMES ๐
The following HTTP methods are supported by cupsd(8):
GETโ Used by a client to download icons and other printer resources and to access the CUPS web interface. ๐ฅHEADโ Used by a client to get the type, size, and modification date of resources. โน๏ธOPTIONSโ Used by a client to establish a secure (SSL/TLS) connection. ๐POSTโ Used by a client to submit IPP requests and HTML forms from the CUPS web interface. ๐คPUTโ Used by a client to upload configuration files. โฌ๏ธ
๐ IPP OPERATION NAMES ๐
The following IPP operations are supported by cupsd(8):
CUPS-Accept-Jobsโ Allows a printer to accept new jobs. ๐CUPS-Add-Modify-Classโ Adds or modifies a printer class. ๐จ๏ธCUPS-Add-Modify-Printerโ Adds or modifies a printer. ๐จ๏ธCUPS-Authenticate-Jobโ Releases a job that is held for authentication. ๐CUPS-Delete-Classโ Deletes a printer class. ๐๏ธCUPS-Delete-Printerโ Deletes a printer. ๐๏ธCUPS-Get-Classesโ Gets a list of printer classes. ๐CUPS-Get-Defaultโ Gets the server default printer or printer class. โญCUPS-Get-Devicesโ Gets a list of devices that are currently available. ๐CUPS-Get-Documentโ Gets a document file for a job. ๐CUPS-Get-PPDโ Gets a PPD file. ๐CUPS-Get-PPDsโ Gets a list of installed PPD files. ๐CUPS-Get-Printersโ Gets a list of printers. ๐CUPS-Move-Jobโ Moves a job. ๐CUPS-Reject-Jobsโ Prevents a printer from accepting new jobs. ๐ซCUPS-Set-Defaultโ Sets the server default printer or printer class. โญCancel-Jobโ Cancels a job. โCancel-Jobsโ Cancels one or more jobs. โCancel-My-Jobsโ Cancels one or more jobs creates by a user. โCancel-Subscriptionโ Cancels a subscription. โClose-Jobโ Closes a job that is waiting for more documents. ๐Create-Jobโ Creates a new job with no documents. ๐Create-Job-Subscriptionsโ Creates a subscription for job events. ๐Create-Printer-Subscriptionsโ Creates a subscription for printer events. ๐Get-Job-Attributesโ Gets information about a job. โน๏ธGet-Jobsโ Gets a list of jobs. ๐Get-Notificationsโ Gets a list of event notifications for a subscription. ๐Get-Printer-Attributesโ Gets information about a printer or printer class. โน๏ธGet-Subscription-Attributesโ Gets information about a subscription. โน๏ธGet-Subscriptionsโ Gets a list of subscriptions. ๐Hold-Jobโ Holds a job from printing. โธ๏ธHold-New-Jobsโ Holds all new jobs from printing. โธ๏ธPause-Printerโ Stops processing of jobs by a printer or printer class. โธ๏ธPause-Printer-After-Current-Jobโ Stops processing of jobs by a printer or printer class after the current job is finished. โธ๏ธPrint-Jobโ Creates a new job with a single document. ๐จ๏ธPurge-Jobsโ Cancels one or more jobs and deletes the job history. ๐๏ธRelease-Held-New-Jobsโ Allows previously held jobs to print. โถ๏ธRelease-Jobโ Allows a job to print. โถ๏ธRenew-Subscriptionโ Renews a subscription. ๐Restart-Jobโ Reprints a job, if possible. ๐Send-Documentโ Adds a document to a job. ๐Set-Job-Attributesโ Changes job information. โ๏ธSet-Printer-Attributesโ Changes printer or printer class information. โ๏ธValidate-Jobโ Validates options for a new job. โ
๐ LOCATION PATHS ๐
The following paths are commonly used when configuring cupsd(8):
/โ The path for all get operations (get-printers, get-jobs, etc.) ๐ฅ/adminโ The path for all administration operations (add-printer, delete-printer, start-printer, etc.) โ๏ธ/admin/confโ The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.) ๐/admin/logโ The path for access to the CUPS log files (access_log, error_log, page_log) ๐/classesโ The path for all printer classes ๐ซ/classes/nameโ The resource for the named printer class ๐ท๏ธ/jobsโ The path for all jobs (hold-job, release-job, etc.) ๐/jobs/idโ The path for the specified job ๐/printersโ The path for all printers ๐จ๏ธ/printers/nameโ The path for the named printer ๐ท๏ธ/printers/name.pngโ The icon file path for the named printer ๐ผ๏ธ/printers/name.ppdโ The PPD file path for the named printer ๐
๐ก๏ธ DIRECTIVES VALID WITHIN LOCATION AND LIMIT SECTIONS ๐ก๏ธ
The following directives may be placed inside Location and Limit sections in the cupsd.conf file:
Allow allAllow noneAllow host.domain.comAllow *.domain.comAllow ipv4-addressAllow ipv4-address/netmaskAllow ipv4-address/mmAllow [ipv6-address]Allow [ipv6-address]/mmAllow @IF(name)Allow @LOCAL
okay so all four of these are the "come on in bestie ๐ซถ" of access control โ they allow access from the hosts, domains, addresses, or interfaces you name. The @IF(name) flavour grabs the subnets that are currently configured for the interface you named. The @LOCAL flavour grabs the current subnets configured for all interfaces that are not point-to-point โ so Ethernet and Wi-Fi interfaces get used, but DSL and VPN interfaces do not. And the Order directive is the one calling the shots on whether your Allow lines get evaluated before or after your Deny lines. ๐
AuthType NoneAuthType BasicAuthType Defaultโ sets the type of authentication required. The value"Default"maps to whatever yourDefaultAuthTypevalue is. ๐Deny allDeny noneDeny host.domain.comDeny *.domain.comDeny ipv4-addressDeny ipv4-address/netmaskDeny ipv4-address/mmDeny [ipv6-address]Deny [ipv6-address]/mmDeny @IF(name)Deny @LOCAL
Same energy, opposite door ๐ช โ these deny access from the named hosts, domains, addresses, or interfaces. @IF(name) uses the current subnets configured for the named interface. @LOCAL uses the current subnets configured for all interfaces that are not point-to-point โ Ethernet and Wi-Fi interfaces are used, but DSL and VPN interfaces are not. And again, the Order directive controls whether Deny lines are evaluated before or after Allow lines. No cap. ๐ง
Encryption IfRequestedEncryption NeverEncryption Requiredโ specifies the level of encryption required for a particular location. The default value is"IfRequested". โจOrder allow,denyโ access is denied by default.Allowlines get processed first, thenDenylines, to figure out whether a client may access a particular resource.Order deny,allowโ access is allowed by default.Denylines get processed first, thenAllowlines, to figure out whether a client may access a particular resource.Require group group-name [ group-name ... ]โ says an authenticated user must be a member of one of the named groups. ๐ฏRequire user {user-name|@group-name} ...โ says an authenticated user must match one of the named users, or be a member of one of the named groups. The group name"@SYSTEM"corresponds to the list of groups defined by theSystemGroupdirective in thecups-files.conf(5)file. The group name"@OWNER"corresponds to the owner of the resource โ for example, the person that submitted a print job. Note: the'root'user is not special and must be granted privileges like any other user account. Periodt. ๐Require valid-userโ says any authenticated user is acceptable. Anyone with a login, come thru. ๐๏ธSatisfy allโ says allAllow,AuthType,Deny,Order, andRequireconditions must be satisfied to allow access. Every single box checked, no skipping. โSatisfy anyโ says a client may access a resource if either the authentication (AuthType/Require) or the address (Allow/Deny/Order) conditions are satisfied. For example, this can be used to require authentication only for remote accesses. Very "pick a lane, either one works" of it. ๐ฃ๏ธ
๐ DIRECTIVES VALID WITHIN POLICY SECTIONS ๐
The following directives may be placed inside Policy sections in the cupsd.conf file:
JobPrivateAccess allJobPrivateAccess defaultJobPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM} ...โ sets an access list for a job's private values. The"default"access list is"@OWNER @SYSTEM"."@ACL"maps to the printer'srequesting-user-name-allowedorrequesting-user-name-deniedvalues."@OWNER"maps to the job's owner."@SYSTEM"maps to the groups listed for theSystemGroupdirective in thecups-files.conf(5)file. ๐JobPrivateValues allJobPrivateValues defaultJobPrivateValues noneJobPrivateValues attribute-name [ ... attribute-name ]โ sets the list of job values to make private. The"default"values are"job-name","job-originating-host-name","job-originating-user-name", and"phone". ๐SubscriptionPrivateAccess allSubscriptionPrivateAccess defaultSubscriptionPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM} ...โ sets an access list for a subscription's private values. The"default"access list is"@OWNER @SYSTEM"."@ACL"maps to the printer'srequesting-user-name-allowedorrequesting-user-name-deniedvalues."@OWNER"maps to the job's owner."@SYSTEM"maps to the groups listed for theSystemGroupdirective in thecups-files.conf(5)file. ๐ฆSubscriptionPrivateValues allSubscriptionPrivateValues defaultSubscriptionPrivateValues noneSubscriptionPrivateValues attribute-name [ ... attribute-name ]โ sets the list of subscription values to make private. The"default"values are"notify-events","notify-pull-method","notify-recipient-uri","notify-subscriber-user-name", and"notify-user-data". ๐ธ
๐ DEPRECATED DIRECTIVES ๐
The following directives are deprecated and will be removed in a future release of CUPS. Bestie, do not build your whole personality around these, they're leaving. ๐ญ
AuthType Negotiateโ specifies Kerberos authentication is required.Classification bannerโ specifies the security classification of the server. 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. The default is no classification banner.ClassifyOverride YesClassifyOverride Noโ specifies whether users may override the classification (cover page) of individual print jobs using the"job-sheets"option. The default is"No".DefaultAuthType Negotiateโ specifies that Kerberos authentication is required by default.GSSServiceName nameโ specifies the service name when using Kerberos authentication. The default service name is"http.".PageLogFormat format-stringโ specifies the format ofPageLoglines. Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally. The following percent sequences are recognized:"%%"inserts a single percent character."%{name}"inserts the value of the specified IPP attribute."%C"inserts the number of copies for the current page."%P"inserts the current page number."%T"inserts the current date and time in common log format."%j"inserts the job ID."%p"inserts the printer name."%u"inserts the username.
The default is the empty string, which disables page logging. The 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. Use "%{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. ๐
๐ NOTES ๐
File, directory, and user configuration directives that used to be allowed in the cupsd.conf file are now stored in the cups-files.conf(5) file instead, in order to prevent certain types of privilege escalation attacks. (Not a vibe, but a necessary one. ๐)
The scheduler MUST be restarted manually after making changes to the cupsd.conf file. On Linux this is typically done using the systemctl(8) command, while on macOS the launchctl(8) command is used instead. Like, it will not just notice on its own, bestie, you have to tell it. ๐ซ
The @LOCAL macro name can be confusing since the system running cupsd often belongs to a different set of subnets from its clients. iykyk. ๐
๐ CONFORMING TO ๐
The cupsd.conf file format is based on the Apache HTTP Server configuration file format. It's giving legacy, it's giving homage. ๐
โจ EXAMPLES โจ
Log everything with a maximum log file size of 32 megabytes:
AccessLogLevel all
LogLevel debug2
MaxLogSize 32m
Require authentication for accesses from outside the 10. network:
<Location />
Order allow,deny
Allow from 10./8
AuthType Basic
Require valid-user
Satisfy any
</Location>
๐ SEE ALSO ๐
classes.conf(5), cups-files.conf(5), cupsd(8), mime.convs(5), mime.types(5), printers.conf(5), subscriptions.conf(5), CUPS Online Help (http://localhost:631/help)
๐ COPYRIGHT ๐
Copyright ยฉ 2020-2025 by OpenPrinting.
and that's a wrap on the whole page, bestie ๐ this was cupsd.conf(5), straight from the CUPS girlies, dated 2025-03-12. Go forth and configure responsibly. Slay. ๐
โจ๐ฆ
๐ฆ where this page comes from
- alpine 3.22: cups-doc 2.4.18-r0 ยท Apache-2.0
- alpine 3.23: cups-doc 2.4.18-r0 ยท Apache-2.0
- alpine 3.24: cups-doc 2.4.19-r1 ยท Apache-2.0
- fedora 43: cups 1:2.4.14-2.fc43 ยท Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups 1:2.4.19-3.fc43 ยท Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups 1:2.4.16-7.fc44 ยท Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups 1:2.4.19-3.fc44 ยท Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- nixpkgs unstable: cups 2.4.19
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 ยท Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 ยท Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 ยท Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 ยท Apache-2.0
- ubuntu resolute: cups-daemon 2.4.16-1ubuntu1 ยท Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu resolute: cups-daemon 2.4.16-1ubuntu1.3 ยท Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu stonking: cups-daemon 2.4.16-1ubuntu3 ยท Apache-2.0-with-GPL2-LGPL2-Exception
- Copyright ยฉ 2020-2025 by OpenPrinting
- Copyright ยฉ 2007-2019 by Apple Inc
- Copyright ยฉ 1997-2006 by Easy Software Products
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms