]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cups-files.conf.man.in
Bump Xcode CUPS version.
[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.\"
7c7347a3 13.TH cups-files.conf 5 "CUPS" "28 August 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.\"#FileDevice
c390f212
MS
133.TP 5
134\fBFileDevice Yes\fR
135.TP 5
136\fBFileDevice No\fR
137Specifies whether the file pseudo-device can be used for new printer queues.
138The URI "file:///dev/null" is always allowed.
37d9646b 139.\"#Group
c390f212 140.TP 5
c390f212
MS
141\fBGroup \fIgroup-name-or-number\fR
142Specifies the group name or ID that will be used when executing external programs.
25d0c3fe 143The default group is operating system specific but is usually "lp" or "nobody".
37d9646b 144.\"#LogFilePerm
c41769ff 145.TP 5
c390f212 146\fBLogFilePerm \fImode\fR
25d0c3fe
MS
147Specifies the permissions of all log files that the scheduler writes.
148The default is "0644".
37d9646b 149.\"#PageLog
c41769ff 150.TP 5
c390f212 151\fBPageLog \fR[ \fIfilename\fR ]
c41769ff 152.TP 5
c59e07c6
MS
153\fBPageLog stderr\fR
154.TP 5
c390f212
MS
155\fBPageLog syslog\fR
156Defines the page log filename.
c59e07c6 157The 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
158The value "syslog" causes log entries to be sent to the system log daemon.
159Specifying a blank filename disables page log generation.
160The server name may be included in filenames using the string "%s", for example:
161.nf
162
163 PageLog /var/log/cups/%s-page_log
164
165.fi
25d0c3fe 166The default is "/var/log/cups/page_log".
37d9646b 167.\"#RemoteRoot
c41769ff 168.TP 5
c390f212
MS
169\fBRemoteRoot \fIusername\fR
170Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user.
25d0c3fe 171The default is "remroot".
37d9646b 172.\"#RequestRoot
c41769ff 173.TP 5
c390f212
MS
174\fBRequestRoot \fIdirectory\fR
175Specifies the directory that contains print jobs and other HTTP request data.
25d0c3fe 176The default is "/var/spool/cups".
37d9646b 177.\"#Sandboxing
c41769ff 178.TP 5
c390f212 179\fBSandboxing relaxed\fR
8fe0183a 180.TP 5
c390f212
MS
181\fBSandboxing strict\fR
182Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler.
183The default is "strict".
8072030b 184This directive is currently only used/supported on macOS.
37d9646b 185.\"#ServerBin
8fe0183a 186.TP 5
c390f212
MS
187\fBServerBin \fIdirectory\fR
188Specifies the directory containing the backends, CGI programs, filters, helper programs, notifiers, and port monitors.
25d0c3fe 189The default is "/usr/lib/cups" or "/usr/libexec/cups" depending on the platform.
37d9646b 190.\"#ServerKeychain
c41769ff 191.TP 5
c390f212 192\fBServerKeychain \fIpath\fR
8fe0183a 193Specifies the location of TLS certificates and private keys.
8072030b
MS
194The default is "/Library/Keychains/System.keychain" on macOS and "/etc/cups/ssl" on all other operating systems.
195macOS 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 196.\"#ServerRoot
c41769ff 197.TP 5
c390f212
MS
198\fBServerRoot \fIdirectory\fR
199Specifies the directory containing the server configuration files.
25d0c3fe 200The default is "/etc/cups".
7c7347a3
MS
201.\"#StateDir
202.TP 5
203\fBStateDir \fIdirectory\fR
204Specifies the directory to use for PID and local certificate files.
205The default is "/var/run/cups" or "/etc/cups" depending on the platform.
37d9646b 206.\"#SyncOnClose
c41769ff 207.TP 5
c390f212 208\fBSyncOnClose Yes\fR
8a259669 209.TP 5
c390f212
MS
210\fBSyncOnClose No\fR
211Specifies whether the scheduler calls
212.BR fsync (2)
25d0c3fe
MS
213after writing configuration or state files.
214The default is "No".
37d9646b 215.\"#SystemGroup
8a259669 216.TP 5
25d0c3fe 217\fBSystemGroup \fIgroup-name \fR[ ... \fIgroup-name\fR ]
c390f212 218Specifies the group(s) to use for \fI@SYSTEM\fR group authentication.
25d0c3fe 219The default contains "admin", "lpadmin", "root", "sys", and/or "system".
37d9646b 220.\"#TempDir
c41769ff 221.TP 5
c390f212 222\fBTempDir \fIdirectory\fR
7c7347a3 223Specifies the directory where short-term temporary files are stored.
25d0c3fe 224The default is "/var/spool/cups/tmp".
37d9646b 225.\"#User
c41769ff 226.TP 5
c390f212 227\fBUser \fIusername\fR
c41769ff 228Specifies the user name or ID that is used when running external programs.
25d0c3fe 229The default is "lp".
7c7347a3
MS
230.SS DEPRECATED DIRECTIVES
231The following directives are deprecated and will be removed from a future version of CUPS:
232.\"#FontPath
233.TP 5
234\fBFontPath \fIdirectory[:...:directoryN]\fR
235Specifies a colon separated list of directories where fonts can be found.
236On Linux the
237.BR font-config (1)
238mechanism is used instead.
239On macOS the Font Book application manages system-installed fonts.
240.\"#LPDConfigFile
241.TP 5
242\fB LPDConfigFile \fIfilename\fR
243Specifies the LPD service configuration file to update.
244.\"#Printcap
245.TP 5
246\fBPrintcap \fIfilename\fR
247Specifies a file that is filled with a list of local print queues.
248.\"#PrintcapFormat
249.TP 5
250\fBPrintcapFormat bsd\fR
251.TP 5
252\fBPrintcapFormat plist\fR
253.TP 5
254\fBPrintcapFormat solaris\fR
255Specifies the format to use for the Printcap file.
256"bsd" is the historical LPD printcap file format.
257"plist" is the Apple plist file format.
258"solaris" is the historical Solaris LPD printcap file format.
259.\"#SMBConfigFile
260.TP 5
261\fBSMBConfigFile \fIfilename\fR
262Specifies the SMB service configuration file to update.
c41769ff 263.SH SEE ALSO
c390f212
MS
264.BR classes.conf (5),
265.BR cups (1),
266.BR cupsd (8),
267.BR cupsd.conf (5),
268.BR mime.convs (5),
269.BR mime.types (5),
270.BR printers.conf (5),
271.BR subscriptions.conf (5),
272CUPS Online Help (http://localhost:631/help)
c41769ff 273.SH COPYRIGHT
bd5a2f28 274Copyright \[co] 2007-2017 by Apple Inc.