]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cups-files.conf.man.in
Update all references to OS X to macOS.
[thirdparty/cups.git] / man / cups-files.conf.man.in
CommitLineData
c41769ff 1.\"
c390f212 2.\" cups-files.conf man page for CUPS.
c41769ff 3.\"
8072030b 4.\" Copyright 2007-2016 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.\"
8072030b 13.TH cups-files.conf 5 "CUPS" "20 June 2016" "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".
37d9646b 48.\"#ConfigFilePerm
c41769ff 49.TP 5
c390f212
MS
50\fBConfigFilePerm \fImode\fR
51Specifies the permissions for all configuration files that the scheduler writes.
8072030b 52The default is "0644" on macOS and "0640" on all other operating systems.
b4a8492a 53.LP
25d0c3fe 54\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
55This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system.
56There is no way to disable this security feature.
37d9646b 57.\"#DataDir
c41769ff 58.TP 5
c390f212 59\fBDataDir \fIpath\fR
25d0c3fe
MS
60Specifies the directory where data files can be found.
61The default is usually "/usr/share/cups".
37d9646b 62.\"#DocumentRoot
c41769ff 63.TP 5
c390f212 64\fBDocumentRoot \fIdirectory\fR
25d0c3fe
MS
65Specifies the root directory for the CUPS web interface content.
66The default is usually "/usr/share/doc/cups".
37d9646b 67.\"#ErrorLog
25d0c3fe
MS
68.TP 5
69\fBErrorLog\fR
c41769ff 70.TP 5
25d0c3fe 71\fBErrorLog \fIfilename\fR
c41769ff 72.TP 5
c59e07c6
MS
73\fBErrorLog stderr\fR
74.TP 5
c390f212
MS
75\fBErrorLog syslog\fR
76Defines the error log filename.
c390f212 77Specifying a blank filename disables error log generation.
c59e07c6 78The 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 79The value "syslog" causes log entries to be sent to the system log daemon.
c390f212
MS
80The server name may be included in filenames using the string "%s", for example:
81.nf
82
83 ErrorLog /var/log/cups/%s-error_log
84
85.fi
25d0c3fe 86The default is "/var/log/cups/error_log".
37d9646b 87.\"#FatalErrors
c41769ff 88.TP 5
c390f212 89\fBFatalErrors none\fR
c41769ff 90.TP 5
25d0c3fe 91\fBFatalErrors all \fI\-kind \fR[ ... \fI\-kind \fR]
c41769ff 92.TP 5
25d0c3fe 93\fBFatalErrors \fIkind \fR[ ... \fIkind \fR]
c390f212 94Specifies which errors are fatal, causing the scheduler to exit.
25d0c3fe 95The default is "config".
c390f212
MS
96The \fIkind\fR strings are:
97.RS 5
c41769ff 98.TP 5
c390f212
MS
99.B none
100No errors are fatal.
c41769ff 101.TP 5
c390f212
MS
102.B all
103All of the errors below are fatal.
c41769ff 104.TP 5
c390f212
MS
105.B browse
106Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon.
107.TP 5
108.B config
109Configuration file syntax errors are fatal.
110.TP 5
111.B listen
112Listen or Port errors are fatal, except for IPv6 failures on the loopback or "any" addresses.
113.TP 5
114.B log
115Log file creation or write errors are fatal.
c41769ff 116.TP 5
c390f212
MS
117.B permissions
118Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions.
119.RE
37d9646b 120.\"#FileDevice
c390f212
MS
121.TP 5
122\fBFileDevice Yes\fR
123.TP 5
124\fBFileDevice No\fR
125Specifies whether the file pseudo-device can be used for new printer queues.
126The URI "file:///dev/null" is always allowed.
37d9646b 127.\"#Group
c390f212 128.TP 5
c390f212
MS
129\fBGroup \fIgroup-name-or-number\fR
130Specifies the group name or ID that will be used when executing external programs.
25d0c3fe 131The default group is operating system specific but is usually "lp" or "nobody".
37d9646b 132.\"#LogFilePerm
c41769ff 133.TP 5
c390f212 134\fBLogFilePerm \fImode\fR
25d0c3fe
MS
135Specifies the permissions of all log files that the scheduler writes.
136The default is "0644".
37d9646b 137.\"#PageLog
c41769ff 138.TP 5
c390f212 139\fBPageLog \fR[ \fIfilename\fR ]
c41769ff 140.TP 5
c59e07c6
MS
141\fBPageLog stderr\fR
142.TP 5
c390f212
MS
143\fBPageLog syslog\fR
144Defines the page log filename.
c59e07c6 145The 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
146The value "syslog" causes log entries to be sent to the system log daemon.
147Specifying a blank filename disables page log generation.
148The server name may be included in filenames using the string "%s", for example:
149.nf
150
151 PageLog /var/log/cups/%s-page_log
152
153.fi
25d0c3fe 154The default is "/var/log/cups/page_log".
37d9646b 155.\"#RemoteRoot
c41769ff 156.TP 5
c390f212
MS
157\fBRemoteRoot \fIusername\fR
158Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user.
25d0c3fe 159The default is "remroot".
37d9646b 160.\"#RequestRoot
c41769ff 161.TP 5
c390f212
MS
162\fBRequestRoot \fIdirectory\fR
163Specifies the directory that contains print jobs and other HTTP request data.
25d0c3fe 164The default is "/var/spool/cups".
37d9646b 165.\"#Sandboxing
c41769ff 166.TP 5
c390f212 167\fBSandboxing relaxed\fR
8fe0183a 168.TP 5
c390f212
MS
169\fBSandboxing strict\fR
170Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler.
171The default is "strict".
8072030b 172This directive is currently only used/supported on macOS.
37d9646b 173.\"#ServerBin
8fe0183a 174.TP 5
c390f212
MS
175\fBServerBin \fIdirectory\fR
176Specifies the directory containing the backends, CGI programs, filters, helper programs, notifiers, and port monitors.
25d0c3fe 177The default is "/usr/lib/cups" or "/usr/libexec/cups" depending on the platform.
37d9646b 178.\"#ServerKeychain
c41769ff 179.TP 5
c390f212 180\fBServerKeychain \fIpath\fR
8fe0183a 181Specifies the location of TLS certificates and private keys.
8072030b
MS
182The default is "/Library/Keychains/System.keychain" on macOS and "/etc/cups/ssl" on all other operating systems.
183macOS 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 184.\"#ServerRoot
c41769ff 185.TP 5
c390f212
MS
186\fBServerRoot \fIdirectory\fR
187Specifies the directory containing the server configuration files.
25d0c3fe 188The default is "/etc/cups".
37d9646b 189.\"#SyncOnClose
c41769ff 190.TP 5
c390f212 191\fBSyncOnClose Yes\fR
8a259669 192.TP 5
c390f212
MS
193\fBSyncOnClose No\fR
194Specifies whether the scheduler calls
195.BR fsync (2)
25d0c3fe
MS
196after writing configuration or state files.
197The default is "No".
37d9646b 198.\"#SystemGroup
8a259669 199.TP 5
25d0c3fe 200\fBSystemGroup \fIgroup-name \fR[ ... \fIgroup-name\fR ]
c390f212 201Specifies the group(s) to use for \fI@SYSTEM\fR group authentication.
25d0c3fe 202The default contains "admin", "lpadmin", "root", "sys", and/or "system".
37d9646b 203.\"#TempDir
c41769ff 204.TP 5
c390f212 205\fBTempDir \fIdirectory\fR
c41769ff 206Specifies the directory where temporary files are stored.
25d0c3fe 207The default is "/var/spool/cups/tmp".
37d9646b 208.\"#User
c41769ff 209.TP 5
c390f212 210\fBUser \fIusername\fR
c41769ff 211Specifies the user name or ID that is used when running external programs.
25d0c3fe 212The default is "lp".
c41769ff 213.SH SEE ALSO
c390f212
MS
214.BR classes.conf (5),
215.BR cups (1),
216.BR cupsd (8),
217.BR cupsd.conf (5),
218.BR mime.convs (5),
219.BR mime.types (5),
220.BR printers.conf (5),
221.BR subscriptions.conf (5),
222CUPS Online Help (http://localhost:631/help)
c41769ff 223.SH COPYRIGHT
d58c2629 224Copyright \[co] 2007-2016 by Apple Inc.