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