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