]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cups-files.conf.man.in
Clarify meaning of printer errors (Issue #5404)
[thirdparty/cups.git] / man / cups-files.conf.man.in
CommitLineData
c41769ff 1.\"
c390f212 2.\" cups-files.conf man page for CUPS.
c41769ff 3.\"
f61dfc0d 4.\" Copyright 2007-2018 by Apple Inc.
8fe0183a 5.\" Copyright 1997-2006 by Easy Software Products.
c41769ff 6.\"
e3101897 7.\" Licensed under Apache License v2.0. See the file "LICENSE" for more information.
c41769ff 8.\"
c6990c1e 9.TH cups-files.conf 5 "CUPS" "21 September 2017" "Apple Inc."
c41769ff 10.SH NAME
c390f212 11cups\-files.conf \- file and directory configuration file for cups
c41769ff 12.SH DESCRIPTION
c390f212
MS
13The \fBcups\-files.conf\fR file configures the files and directories used by the CUPS scheduler,
14.BR cupsd (8).
15It is normally located in the \fI/etc/cups\fR directory.
c41769ff 16.LP
c390f212 17Each line in the file can be a configuration directive, a blank line, or a comment.
25d0c3fe
MS
18Configuration directives typically consist of a name and zero or more values separated by whitespace.
19The configuration directive name and values are case-insensitive.
c390f212
MS
20Comment lines start with the # character.
21.SS DIRECTIVES
22The following directives are understood by
23.BR cupsd (8):
37d9646b 24.\"#AccessLog
c41769ff 25.TP 5
25d0c3fe 26\fBAccessLog\fR
c41769ff 27.TP 5
25d0c3fe 28\fBAccessLog \fIfilename\fR
c390f212 29.TP 5
c59e07c6
MS
30\fBAccessLog stderr\fR
31.TP 5
c390f212 32\fBAccessLog syslog\fR
c41769ff 33Defines the access log filename.
c390f212 34Specifying a blank filename disables access log generation.
c59e07c6 35The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background.
25d0c3fe 36The value "syslog" causes log entries to be sent to the system log daemon.
c390f212
MS
37The server name may be included in filenames using the string "%s", for example:
38.nf
39
40 AccessLog /var/log/cups/%s-access_log
41
42.fi
25d0c3fe 43The default is "/var/log/cups/access_log".
7c7347a3
MS
44.\"#CacheDir
45.TP 5
46\fBCacheDir \fIdirectory\fR
47Specifies the directory to use for long-lived temporary (cache) files.
48The default is "/var/spool/cups/cache" or "/var/cache/cups" depending on the platform.
37d9646b 49.\"#ConfigFilePerm
c41769ff 50.TP 5
c390f212
MS
51\fBConfigFilePerm \fImode\fR
52Specifies the permissions for all configuration files that the scheduler writes.
8072030b 53The default is "0644" on macOS and "0640" on all other operating systems.
b4a8492a 54.LP
25d0c3fe 55\fBNote:\fR The permissions for the \fIprinters.conf\fR file are currently masked to only allow access from the scheduler user (typically root).
c390f212
MS
56This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system.
57There is no way to disable this security feature.
efed0562
MS
58.\"#CreateSelfSignedCerts
59.TP 5
60\fBCreateSelfSignedCerts yes\fR
61.TP 5
62\fBCreateSelfSignedCerts no\fR
63Specifies whether the scheduler automatically creates self-signed certificates for client connections using TLS.
64The default is yes.
37d9646b 65.\"#DataDir
c41769ff 66.TP 5
c390f212 67\fBDataDir \fIpath\fR
25d0c3fe
MS
68Specifies the directory where data files can be found.
69The default is usually "/usr/share/cups".
37d9646b 70.\"#DocumentRoot
c41769ff 71.TP 5
c390f212 72\fBDocumentRoot \fIdirectory\fR
25d0c3fe
MS
73Specifies the root directory for the CUPS web interface content.
74The default is usually "/usr/share/doc/cups".
37d9646b 75.\"#ErrorLog
25d0c3fe
MS
76.TP 5
77\fBErrorLog\fR
c41769ff 78.TP 5
25d0c3fe 79\fBErrorLog \fIfilename\fR
c41769ff 80.TP 5
c59e07c6
MS
81\fBErrorLog stderr\fR
82.TP 5
c390f212
MS
83\fBErrorLog syslog\fR
84Defines the error log filename.
c390f212 85Specifying a blank filename disables error log generation.
c59e07c6 86The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background.
25d0c3fe 87The value "syslog" causes log entries to be sent to the system log daemon.
c390f212
MS
88The server name may be included in filenames using the string "%s", for example:
89.nf
90
91 ErrorLog /var/log/cups/%s-error_log
92
93.fi
25d0c3fe 94The default is "/var/log/cups/error_log".
37d9646b 95.\"#FatalErrors
c41769ff 96.TP 5
c390f212 97\fBFatalErrors none\fR
c41769ff 98.TP 5
25d0c3fe 99\fBFatalErrors all \fI\-kind \fR[ ... \fI\-kind \fR]
c41769ff 100.TP 5
25d0c3fe 101\fBFatalErrors \fIkind \fR[ ... \fIkind \fR]
c390f212 102Specifies which errors are fatal, causing the scheduler to exit.
25d0c3fe 103The default is "config".
c390f212
MS
104The \fIkind\fR strings are:
105.RS 5
c41769ff 106.TP 5
c390f212
MS
107.B none
108No errors are fatal.
c41769ff 109.TP 5
c390f212
MS
110.B all
111All of the errors below are fatal.
c41769ff 112.TP 5
c390f212
MS
113.B browse
114Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon.
115.TP 5
116.B config
117Configuration file syntax errors are fatal.
118.TP 5
119.B listen
120Listen or Port errors are fatal, except for IPv6 failures on the loopback or "any" addresses.
121.TP 5
122.B log
123Log file creation or write errors are fatal.
c41769ff 124.TP 5
c390f212
MS
125.B permissions
126Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions.
127.RE
37d9646b 128.\"#Group
c390f212 129.TP 5
c390f212
MS
130\fBGroup \fIgroup-name-or-number\fR
131Specifies the group name or ID that will be used when executing external programs.
25d0c3fe 132The default group is operating system specific but is usually "lp" or "nobody".
37d9646b 133.\"#LogFilePerm
c41769ff 134.TP 5
c390f212 135\fBLogFilePerm \fImode\fR
25d0c3fe
MS
136Specifies the permissions of all log files that the scheduler writes.
137The default is "0644".
37d9646b 138.\"#PageLog
c41769ff 139.TP 5
c390f212 140\fBPageLog \fR[ \fIfilename\fR ]
c41769ff 141.TP 5
c59e07c6
MS
142\fBPageLog stderr\fR
143.TP 5
c390f212
MS
144\fBPageLog syslog\fR
145Defines the page log filename.
c59e07c6 146The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background.
c390f212
MS
147The value "syslog" causes log entries to be sent to the system log daemon.
148Specifying a blank filename disables page log generation.
149The server name may be included in filenames using the string "%s", for example:
150.nf
151
152 PageLog /var/log/cups/%s-page_log
153
154.fi
25d0c3fe 155The default is "/var/log/cups/page_log".
d47f6aec
MS
156.\"#PassEnv
157.TP 5
158\fBPassEnv \fIvariable \fR[ ... \fIvariable \fR]
159Passes the specified environment variable(s) to child processes.
160Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive.
37d9646b 161.\"#RemoteRoot
c41769ff 162.TP 5
c390f212
MS
163\fBRemoteRoot \fIusername\fR
164Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user.
25d0c3fe 165The default is "remroot".
37d9646b 166.\"#RequestRoot
c41769ff 167.TP 5
c390f212
MS
168\fBRequestRoot \fIdirectory\fR
169Specifies the directory that contains print jobs and other HTTP request data.
25d0c3fe 170The default is "/var/spool/cups".
37d9646b 171.\"#Sandboxing
c41769ff 172.TP 5
c390f212 173\fBSandboxing relaxed\fR
8fe0183a 174.TP 5
c390f212
MS
175\fBSandboxing strict\fR
176Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler.
177The default is "strict".
8072030b 178This directive is currently only used/supported on macOS.
37d9646b 179.\"#ServerBin
8fe0183a 180.TP 5
c390f212
MS
181\fBServerBin \fIdirectory\fR
182Specifies the directory containing the backends, CGI programs, filters, helper programs, notifiers, and port monitors.
25d0c3fe 183The default is "/usr/lib/cups" or "/usr/libexec/cups" depending on the platform.
37d9646b 184.\"#ServerKeychain
c41769ff 185.TP 5
c390f212 186\fBServerKeychain \fIpath\fR
8fe0183a 187Specifies the location of TLS certificates and private keys.
8072030b
MS
188The default is "/Library/Keychains/System.keychain" on macOS and "/etc/cups/ssl" on all other operating systems.
189macOS uses its keychain database to store certificates and keys while other platforms use separate files in the specified directory, *.crt for PEM-encoded certificates and *.key for PEM-encoded private keys.
37d9646b 190.\"#ServerRoot
c41769ff 191.TP 5
c390f212
MS
192\fBServerRoot \fIdirectory\fR
193Specifies the directory containing the server configuration files.
25d0c3fe 194The default is "/etc/cups".
d47f6aec
MS
195.\"#SetEnv
196.TP 5
197\fBSetEnv \fIvariable value\fR
198Set the specified environment variable to be passed to child processes.
199Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive.
7c7347a3
MS
200.\"#StateDir
201.TP 5
202\fBStateDir \fIdirectory\fR
203Specifies the directory to use for PID and local certificate files.
204The default is "/var/run/cups" or "/etc/cups" depending on the platform.
37d9646b 205.\"#SyncOnClose
c41769ff 206.TP 5
c390f212 207\fBSyncOnClose Yes\fR
8a259669 208.TP 5
c390f212
MS
209\fBSyncOnClose No\fR
210Specifies whether the scheduler calls
211.BR fsync (2)
25d0c3fe
MS
212after writing configuration or state files.
213The default is "No".
37d9646b 214.\"#SystemGroup
8a259669 215.TP 5
25d0c3fe 216\fBSystemGroup \fIgroup-name \fR[ ... \fIgroup-name\fR ]
c390f212 217Specifies the group(s) to use for \fI@SYSTEM\fR group authentication.
25d0c3fe 218The default contains "admin", "lpadmin", "root", "sys", and/or "system".
37d9646b 219.\"#TempDir
c41769ff 220.TP 5
c390f212 221\fBTempDir \fIdirectory\fR
7c7347a3 222Specifies the directory where short-term temporary files are stored.
25d0c3fe 223The default is "/var/spool/cups/tmp".
37d9646b 224.\"#User
c41769ff 225.TP 5
c390f212 226\fBUser \fIusername\fR
c41769ff 227Specifies the user name or ID that is used when running external programs.
25d0c3fe 228The default is "lp".
7c7347a3
MS
229.SS DEPRECATED DIRECTIVES
230The following directives are deprecated and will be removed from a future version of CUPS:
c6990c1e
MS
231.\"#FileDevice
232.TP 5
233\fBFileDevice Yes\fR
234.TP 5
235\fBFileDevice No\fR
236Specifies whether the file pseudo-device can be used for new printer queues.
237The URI "file:///dev/null" is always allowed.
238File devices cannot be used with "raw" print queues - a PPD file is required.
239The specified file is overwritten for every print job.
240Writing to directories is not supported.
7c7347a3
MS
241.\"#FontPath
242.TP 5
243\fBFontPath \fIdirectory[:...:directoryN]\fR
244Specifies a colon separated list of directories where fonts can be found.
245On Linux the
246.BR font-config (1)
247mechanism is used instead.
248On macOS the Font Book application manages system-installed fonts.
249.\"#LPDConfigFile
250.TP 5
251\fB LPDConfigFile \fIfilename\fR
252Specifies the LPD service configuration file to update.
253.\"#Printcap
254.TP 5
255\fBPrintcap \fIfilename\fR
256Specifies a file that is filled with a list of local print queues.
257.\"#PrintcapFormat
258.TP 5
259\fBPrintcapFormat bsd\fR
260.TP 5
261\fBPrintcapFormat plist\fR
262.TP 5
263\fBPrintcapFormat solaris\fR
264Specifies the format to use for the Printcap file.
265"bsd" is the historical LPD printcap file format.
266"plist" is the Apple plist file format.
267"solaris" is the historical Solaris LPD printcap file format.
268.\"#SMBConfigFile
269.TP 5
270\fBSMBConfigFile \fIfilename\fR
271Specifies the SMB service configuration file to update.
c41769ff 272.SH SEE ALSO
c390f212
MS
273.BR classes.conf (5),
274.BR cups (1),
275.BR cupsd (8),
276.BR cupsd.conf (5),
277.BR mime.convs (5),
278.BR mime.types (5),
279.BR printers.conf (5),
280.BR subscriptions.conf (5),
281CUPS Online Help (http://localhost:631/help)
c41769ff 282.SH COPYRIGHT
f61dfc0d 283Copyright \[co] 2007-2018 by Apple Inc.