Cupsd.conf file




















BrowsePort port Specifies the port to listen to for printer information packets. BrowseRelay from-address to-address Specifies that printer information packets should be relayed from one host or network to another. This option is ignored if more than one remote printer exists with the same name. BrowseTimeout seconds Specifies the maximum interval between printer information updates before remote printers will be removed from the list of available printers.

Browsing Yes Browsing No Specifies whether or not remote printer browsing should be enabled. Classification banner Specifies the security classification of the server. ClassifyOverride Yes ClassifyOverride No Specifies whether to allow users to override the classification of individual print jobs. ConfigFilePerm mode Specifies the permissions for all configuration files that the scheduler writes.

DataDir path Specified the directory where data files can be found. DefaultLanguage locale Specifies the default language to use for text and web content. DefaultPolicy policy-name Specifies the default access policy to use.

Deny all Deny none Deny host. DirtyCleanInterval seconds Specifies the delay for updating of configuration and state files. A value of 0 causes the update to happen as soon as possible, typ- ically within a few milliseconds. DocumentRoot directory Specifies the root directory for the internal web server docu- ments.

Encryption IfRequested Encryption Never Encryption Required Specifies the level of encryption that is required for a particu- lar location. ErrorLog filename ErrorLog syslog Specifies the error log filename. FatalErrors none FatalErrors all -kind [ FilterLimit limit Specifies the maximum cost of filters that are run concurrently. FilterNice nice-value Specifies the scheduling priority "nice" value of filters that are run to print a job.

FontPath directory[:directory Group group-name-or-number Specifies the group name or ID that will be used when executing external programs. ImplicitClasses Yes ImplicitClasses No Specifies whether or not to create implicit classes from identical remote printers. Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time.

The FilterNice directive sets the nice 1 value to assign to filter processes. The nice value ranges from 0, the highest priority, to 19, the lowest priority. The default is 0. The FontPath directive specifies the font path to use when searching for fonts. The default group is system-specific but is usually lp or nobody. The Double setting causes CUPS 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. Set this option to On or Double only if absolutely required. The Include directive includes the named file in the cupsd. If no leading path is provided, the file is assumed to be relative to the ServerRoot directory. The JobPrivateAccess directive specifies the access list for a job's private values. The JobPrivateAccess directive must appear inside a Policy section.

The JobPrivateValues directive specifies the list of job values to make private. The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".

The JobPrivateValues directive must appear inside a Policy section. The JobRetryInterval directive specifies the amount of time to wait before retrying a job in seconds no suffix , minutes "m" suffix , hours "h" suffix , days "d" suffix , or weeks "w" suffix.

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. The JobKillDelay directive specifies the amount of time to wait before killing the filters and backend associated with a canceled or held job in seconds no suffix , minutes "m" suffix , hours "h" suffix , days "d" suffix , or weeks "w" suffix.

The JobRetryLimit directive specifies the maximum number of times the scheduler will try to print a job. 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 times. The default is On. The KeepAliveTimeout directive controls how long a persistent HTTP connection will remain open after the last request in seconds no suffix , minutes "m" suffix , hours "h" suffix , days "d" suffix , or weeks "w" suffix.

The Limit directive groups access control directives for specific types of HTTP requests and must appear inside a Location section. The request type names are case-sensitive for compatibility with Apache.

When included in Policy sections, the Limit directive groups access control directives for specific IPP operations. Multiple operations can be listed, separated by spaces. Table 2 lists the supported operations. The LimitExcept directive groups access control directives for specific types of HTTP requests and must appear inside a Location section.

Unlike the Limit directive, LimitExcept restricts access for all requests except those listed on the LimitExcept line. The default limit is 0 which disables the limit check. The Listen directive specifies a network address and port to listen for connections. Multiple Listen directives can be provided to listen on multiple addresses. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks.

The ListenBackLog directive sets the maximum number of pending connections the scheduler will allow. This normally only affects very busy servers that have reached the MaxClients limit, but can also be triggered by large numbers of simultaneous connections. When the limit is reached, the operating system will refuse additional connections until the scheduler can accept the pending ones. The default is the OS-defined default limit, typically either 5 for older operating systems or for newer operating systems.

The Location directive specifies access control and authentication options for the specified HTTP resource or path. Note that more specific resources override the less specific ones. None of the directives are inherited. When LogLevel is not set to debug or debug2 , the LogDebugHistory directive specifies the number of debugging messages that are logged when an error occurs during printing.

The default is messages. A value of 0 disables debugging history entirely and is not recommended. The LogFilePerm directive specifies the permissions to use when writing log files. The LogLevel directive specifies the level of logging for the ErrorLog file. The following values are recognized each level logs everything under the preceding levels :. The LogTimeFormat directive specifies the format used for the date and time in the log files. Standard uses the standard Apache Common Log Format date and time while usecs adds microseconds.

The default is standard. The MaxClients directive controls the maximum number of simultaneous clients that will be allowed by the server. The default is clients. The MaxClientsPerHost directive controls the maximum number of simultaneous clients that will be allowed from a single host by the server. The default is the MaxClients value. This directive provides a small measure of protection against Denial of Service attacks from a single host.

The MaxCopies directive controls the maximum number of copies that a user can print of a job. The MaxHoldTime directive controls the maximum number of seconds allowed for a job to remain in the "indefinite" hold state.

The job is canceled automatically if it remains held indefinitely longer than the specified time interval in seconds no suffix , minutes "m" suffix , hours "h" suffix , days "d" suffix , or weeks "w" suffix.

The MaxJobs directive controls the maximum number of jobs that are kept in memory. Once the number of jobs reaches the limit, the oldest completed job is automatically purged from the system to make room for the new one. If all of the known jobs are still pending or active then the new job will be rejected. The MaxJobsPerPrinter directive controls the maximum number of active jobs that are allowed for each printer or class.

Once a printer or class reaches the limit, new jobs will be rejected until one of the active jobs is completed, stopped, aborted, or canceled. The MaxJobsPerUser directive controls the maximum number of active jobs that are allowed for each user. Once a user reaches the limit, new jobs will be rejected until one of the active jobs is completed, stopped, aborted, or canceled.

The MaxJobTime directive controls the maximum number of seconds allowed for a job to complete printing before it is considered "stuck". The job is canceled automatically if it takes longer than the specified time to complete in seconds no suffix , minutes "m" suffix , hours "h" suffix , days "d" suffix , or weeks "w" suffix. Setting the maximum time to 0 disables this functionality. The default setting is 3h 3 hours. The MaxLogSize directive controls the maximum size of each log file.

Once a log file reaches or exceeds the maximum size it is closed and renamed to filename. This allows you to rotate the logs automatically. The default size is bytes 1MB. This directive is deprecated and will be removed in a future CUPS release. Use the LimitRequestBody directive instead. The MultipleOperationTimeout directive sets the maximum amount of time between files in a multi-file print job in seconds no suffix , minutes "m" suffix , hours "h" suffix , days "d" suffix , or weeks "w" suffix.

The Order directive defines the default access control. The following values are supported:. The Order directive must appear inside a Location or Limit section. All rights reserved Terms of Service. CUPS stands for Common UNIX Printing System There are two ways to manage your printers on Linux environment: First, from command line, using lpadmin command, you can configure your printer and manage the print queues Second, from web UI, you can manage your printers interactively In one of our previous tutorial, we discussed about how to add new printer, change the printer settings, and manipulate print queues using 12 examples of lpadmin command on Linux.

I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem.

Read more about Ramesh Natarajan and the blog.



0コメント

  • 1000 / 1000