Blame man/cups-files.conf.man.in

Packit 2fc92b
.\"
Packit 2fc92b
.\" cups-files.conf man page for CUPS.
Packit 2fc92b
.\"
Packit 2fc92b
.\" Copyright 2007-2017 by Apple Inc.
Packit 2fc92b
.\" Copyright 1997-2006 by Easy Software Products.
Packit 2fc92b
.\"
Packit 2fc92b
.\" These coded instructions, statements, and computer programs are the
Packit 2fc92b
.\" property of Apple Inc. and are protected by Federal copyright
Packit 2fc92b
.\" law.  Distribution and use rights are outlined in the file "LICENSE.txt"
Packit 2fc92b
.\" which should have been included with this file.  If this file is
Packit 2fc92b
.\" file is missing or damaged, see the license at "http://www.cups.org/".
Packit 2fc92b
.\"
Packit 2fc92b
.TH cups-files.conf 5 "CUPS" "21 September 2017" "Apple Inc."
Packit 2fc92b
.SH NAME
Packit 2fc92b
cups\-files.conf \- file and directory configuration file for cups
Packit 2fc92b
.SH DESCRIPTION
Packit 2fc92b
The \fBcups\-files.conf\fR file configures the files and directories used by the CUPS scheduler,
Packit 2fc92b
.BR cupsd (8).
Packit 2fc92b
It is normally located in the \fI/etc/cups\fR directory.
Packit 2fc92b
.LP
Packit 2fc92b
Each line in the file can be a configuration directive, a blank line, or a comment.
Packit 2fc92b
Configuration directives typically consist of a name and zero or more values separated by whitespace.
Packit 2fc92b
The configuration directive name and values are case-insensitive.
Packit 2fc92b
Comment lines start with the # character.
Packit 2fc92b
.SS DIRECTIVES
Packit 2fc92b
The following directives are understood by
Packit 2fc92b
.BR cupsd (8):
Packit 2fc92b
.\"#AccessLog
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBAccessLog\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBAccessLog \fIfilename\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBAccessLog stderr\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBAccessLog syslog\fR
Packit 2fc92b
Defines the access log filename.
Packit 2fc92b
Specifying a blank filename disables access log generation.
Packit 2fc92b
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.
Packit 2fc92b
The value "syslog" causes log entries to be sent to the system log daemon.
Packit 2fc92b
The server name may be included in filenames using the string "%s", for example:
Packit 2fc92b
.nf
Packit 2fc92b
Packit 2fc92b
    AccessLog /var/log/cups/%s-access_log
Packit 2fc92b
Packit 2fc92b
.fi
Packit 2fc92b
The default is "/var/log/cups/access_log".
Packit 2fc92b
.\"#CacheDir
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBCacheDir \fIdirectory\fR
Packit 2fc92b
Specifies the directory to use for long-lived temporary (cache) files.
Packit 2fc92b
The default is "/var/spool/cups/cache" or "/var/cache/cups" depending on the platform.
Packit 2fc92b
.\"#ConfigFilePerm
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBConfigFilePerm \fImode\fR
Packit 2fc92b
Specifies the permissions for all configuration files that the scheduler writes.
Packit 2fc92b
The default is "0644" on macOS and "0640" on all other operating systems.
Packit 2fc92b
.LP
Packit 2fc92b
\fBNote:\fR The permissions for the \fIprinters.conf\fR file are currently masked to only allow access from the scheduler user (typically root).
Packit 2fc92b
This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system.
Packit 2fc92b
There is no way to disable this security feature.
Packit 2fc92b
.\"#CreateSelfSignedCerts
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBCreateSelfSignedCerts yes\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBCreateSelfSignedCerts no\fR
Packit 2fc92b
Specifies whether the scheduler automatically creates self-signed certificates for client connections using TLS.
Packit 2fc92b
The default is yes.
Packit 2fc92b
.\"#DataDir
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBDataDir \fIpath\fR
Packit 2fc92b
Specifies the directory where data files can be found.
Packit 2fc92b
The default is usually "/usr/share/cups".
Packit 2fc92b
.\"#DocumentRoot
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBDocumentRoot \fIdirectory\fR
Packit 2fc92b
Specifies the root directory for the CUPS web interface content.
Packit 2fc92b
The default is usually "/usr/share/doc/cups".
Packit 2fc92b
.\"#ErrorLog
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBErrorLog\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBErrorLog \fIfilename\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBErrorLog stderr\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBErrorLog syslog\fR
Packit 2fc92b
Defines the error log filename.
Packit 2fc92b
Specifying a blank filename disables error log generation.
Packit 2fc92b
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.
Packit 2fc92b
The value "syslog" causes log entries to be sent to the system log daemon.
Packit 2fc92b
The server name may be included in filenames using the string "%s", for example:
Packit 2fc92b
.nf
Packit 2fc92b
Packit 2fc92b
    ErrorLog /var/log/cups/%s-error_log
Packit 2fc92b
Packit 2fc92b
.fi
Packit 2fc92b
The default is "/var/log/cups/error_log".
Packit 2fc92b
.\"#FatalErrors
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBFatalErrors none\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBFatalErrors all \fI\-kind \fR[ ... \fI\-kind \fR]
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBFatalErrors \fIkind \fR[ ... \fIkind \fR]
Packit 2fc92b
Specifies which errors are fatal, causing the scheduler to exit.
Packit 2fc92b
The default is "config".
Packit 2fc92b
The \fIkind\fR strings are:
Packit 2fc92b
.RS 5
Packit 2fc92b
.TP 5
Packit 2fc92b
.B none
Packit 2fc92b
No errors are fatal.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B all
Packit 2fc92b
All of the errors below are fatal.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B browse
Packit 2fc92b
Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B config
Packit 2fc92b
Configuration file syntax errors are fatal.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B listen
Packit 2fc92b
Listen or Port errors are fatal, except for IPv6 failures on the loopback or "any" addresses.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B log
Packit 2fc92b
Log file creation or write errors are fatal.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B permissions
Packit 2fc92b
Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions.
Packit 2fc92b
.RE
Packit 2fc92b
.\"#Group
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBGroup \fIgroup-name-or-number\fR
Packit 2fc92b
Specifies the group name or ID that will be used when executing external programs.
Packit 2fc92b
The default group is operating system specific but is usually "lp" or "nobody".
Packit 2fc92b
.\"#LogFilePerm
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBLogFilePerm \fImode\fR
Packit 2fc92b
Specifies the permissions of all log files that the scheduler writes.
Packit 2fc92b
The default is "0644".
Packit 2fc92b
.\"#PageLog
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPageLog \fR[ \fIfilename\fR ]
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPageLog stderr\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPageLog syslog\fR
Packit 2fc92b
Defines the page log filename.
Packit 2fc92b
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.
Packit 2fc92b
The value "syslog" causes log entries to be sent to the system log daemon.
Packit 2fc92b
Specifying a blank filename disables page log generation.
Packit 2fc92b
The server name may be included in filenames using the string "%s", for example:
Packit 2fc92b
.nf
Packit 2fc92b
Packit 2fc92b
    PageLog /var/log/cups/%s-page_log
Packit 2fc92b
Packit 2fc92b
.fi
Packit 2fc92b
The default is "/var/log/cups/page_log".
Packit 7378c4
.\"#PassEnv
Packit 7378c4
.TP 5
Packit 7378c4
\fBPassEnv \fIvariable \fR[ ... \fIvariable \fR]
Packit 7378c4
Passes the specified environment variable(s) to child processes.
Packit 7378c4
Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive.
Packit 2fc92b
.\"#RemoteRoot
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBRemoteRoot \fIusername\fR
Packit 2fc92b
Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user.
Packit 2fc92b
The default is "remroot".
Packit 2fc92b
.\"#RequestRoot
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBRequestRoot \fIdirectory\fR
Packit 2fc92b
Specifies the directory that contains print jobs and other HTTP request data.
Packit 2fc92b
The default is "/var/spool/cups".
Packit 2fc92b
.\"#Sandboxing
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBSandboxing relaxed\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBSandboxing strict\fR
Packit 2fc92b
Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler.
Packit 2fc92b
The default is "strict".
Packit 2fc92b
This directive is currently only used/supported on macOS.
Packit 2fc92b
.\"#ServerBin
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBServerBin \fIdirectory\fR
Packit 2fc92b
Specifies the directory containing the backends, CGI programs, filters, helper programs, notifiers, and port monitors.
Packit 2fc92b
The default is "/usr/lib/cups" or "/usr/libexec/cups" depending on the platform.
Packit 2fc92b
.\"#ServerKeychain
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBServerKeychain \fIpath\fR
Packit 2fc92b
Specifies the location of TLS certificates and private keys.
Packit 2fc92b
The default is "/Library/Keychains/System.keychain" on macOS and "/etc/cups/ssl" on all other operating systems.
Packit 2fc92b
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.
Packit 2fc92b
.\"#ServerRoot
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBServerRoot \fIdirectory\fR
Packit 2fc92b
Specifies the directory containing the server configuration files.
Packit 2fc92b
The default is "/etc/cups".
Packit 7378c4
.\"#SetEnv
Packit 7378c4
.TP 5
Packit 7378c4
\fBSetEnv \fIvariable value\fR
Packit 7378c4
Set the specified environment variable to be passed to child processes.
Packit 7378c4
Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive.
Packit 2fc92b
.\"#StateDir
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBStateDir \fIdirectory\fR
Packit 2fc92b
Specifies the directory to use for PID and local certificate files.
Packit 2fc92b
The default is "/var/run/cups" or "/etc/cups" depending on the platform.
Packit 2fc92b
.\"#SyncOnClose
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBSyncOnClose Yes\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBSyncOnClose No\fR
Packit 2fc92b
Specifies whether the scheduler calls
Packit 2fc92b
.BR fsync (2)
Packit 2fc92b
after writing configuration or state files.
Packit 79d6e1
The default is "Yes".
Packit 2fc92b
.\"#SystemGroup
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBSystemGroup \fIgroup-name \fR[ ... \fIgroup-name\fR ]
Packit 2fc92b
Specifies the group(s) to use for \fI@SYSTEM\fR group authentication.
Packit 2fc92b
The default contains "admin", "lpadmin", "root", "sys", and/or "system".
Packit 2fc92b
.\"#TempDir
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBTempDir \fIdirectory\fR
Packit 2fc92b
Specifies the directory where short-term temporary files are stored.
Packit 2fc92b
The default is "/var/spool/cups/tmp".
Packit 2fc92b
.\"#User
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBUser \fIusername\fR
Packit 2fc92b
Specifies the user name or ID that is used when running external programs.
Packit 2fc92b
The default is "lp".
Packit 2fc92b
.SS DEPRECATED DIRECTIVES
Packit 2fc92b
The following directives are deprecated and will be removed from a future version of CUPS:
Packit 2fc92b
.\"#FileDevice
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBFileDevice Yes\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBFileDevice No\fR
Packit 2fc92b
Specifies whether the file pseudo-device can be used for new printer queues.
Packit 2fc92b
The URI "file:///dev/null" is always allowed.
Packit 2fc92b
File devices cannot be used with "raw" print queues - a PPD file is required.
Packit 2fc92b
The specified file is overwritten for every print job.
Packit 2fc92b
Writing to directories is not supported.
Packit 2fc92b
.\"#FontPath
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBFontPath \fIdirectory[:...:directoryN]\fR
Packit 2fc92b
Specifies a colon separated list of directories where fonts can be found.
Packit 2fc92b
On Linux the
Packit 2fc92b
.BR font-config (1)
Packit 2fc92b
mechanism is used instead.
Packit 2fc92b
On macOS the Font Book application manages system-installed fonts.
Packit 2fc92b
.\"#LPDConfigFile
Packit 2fc92b
.TP 5
Packit 2fc92b
\fB LPDConfigFile \fIfilename\fR
Packit 2fc92b
Specifies the LPD service configuration file to update.
Packit 2fc92b
.\"#Printcap
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPrintcap \fIfilename\fR
Packit 2fc92b
Specifies a file that is filled with a list of local print queues.
Packit 2fc92b
.\"#PrintcapFormat
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPrintcapFormat bsd\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPrintcapFormat plist\fR
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBPrintcapFormat solaris\fR
Packit 2fc92b
Specifies the format to use for the Printcap file.
Packit 2fc92b
"bsd" is the historical LPD printcap file format.
Packit 2fc92b
"plist" is the Apple plist file format.
Packit 2fc92b
"solaris" is the historical Solaris LPD printcap file format.
Packit 2fc92b
.\"#SMBConfigFile
Packit 2fc92b
.TP 5
Packit 2fc92b
\fBSMBConfigFile \fIfilename\fR
Packit 2fc92b
Specifies the SMB service configuration file to update.
Packit 2fc92b
.SH SEE ALSO
Packit 2fc92b
.BR classes.conf (5),
Packit 2fc92b
.BR cups (1),
Packit 2fc92b
.BR cupsd (8),
Packit 2fc92b
.BR cupsd.conf (5),
Packit 2fc92b
.BR mime.convs (5),
Packit 2fc92b
.BR mime.types (5),
Packit 2fc92b
.BR printers.conf (5),
Packit 2fc92b
.BR subscriptions.conf (5),
Packit 2fc92b
CUPS Online Help (http://localhost:631/help)
Packit 2fc92b
.SH COPYRIGHT
Packit 2fc92b
Copyright \[co] 2007-2017 by Apple Inc.