diff options
Diffstat (limited to 'support/dktools/printqd.conf.sample')
-rw-r--r-- | support/dktools/printqd.conf.sample | 209 |
1 files changed, 0 insertions, 209 deletions
diff --git a/support/dktools/printqd.conf.sample b/support/dktools/printqd.conf.sample deleted file mode 100644 index 7719616533..0000000000 --- a/support/dktools/printqd.conf.sample +++ /dev/null @@ -1,209 +0,0 @@ -# Copyright (C) 2020, Dirk Krause. All rights reserved. -# SPDX-License-Identifier: BSD-3-Clause - -# The options section contains general options. -# ============================================= - -[options] - -# After startup the printqd process gives up privileges and runs -# under an unprivileged user account. -# Use the same UID as the LPRng lpd daemon does. -# For some name services you can not use this option as only the -# root user has access to user and group information. -# -------------------------------------------------------------- -# run as user = lp - -# After startup the printqd process gives up privileges and runs -# under an unprivileged group. -# The group must have the following permissions: -# - Write access to the directory containing the local UNIX -# domain socket, -# - Read/write access to the local UNIX domain socket, if it -# already exists, -# - Write access to the log file (write access to the directory -# containing the log file if the file does not yet exist) and -# - Write access to the database file(s) (write access to the -# directory containing the database files if they do not -# yet exist). -# Use the same GID as the LPRng lpd daemon does. -# -------------------------------------------------------------- -# run as group = lp - -# Database type and file name separated by `::', optional. -# By default the database is placed in the ${localstatedir}/printqd -# directory as file(s) printqd.* , the best available database type -# is choosen with a corresponding file name suffix. -# ----------------------------------------------------------------- -# database = mem::/var/lib/printqd/db/printqd.db - -# Local UNIX domain socket, optional. -# Default is ${localstatedir}/run/printqd/printqd.sock . -# ------------------------------------------------------ -# local socket = /var/run/printqd/printqd.sock - -# Owner of the local socket. -# Only needed if ``run as user'' is not specified. -# Use the account of the LPRng print system. -# ------------------------------------------------ -# local socket owner = daemon - -# Owner group of local socket. -# Only needed if ``run as group'' is not specified. -# Use the group of the LPRng print system. -# ------------------------------------------------- -# local socket group = lp - -# Number of connection attempts to queue for local UNIX domain socket. -# The default is 5. You should use at least 1 + number of print queues. -# --------------------------------------------------------------------- -# local socket backlog = 5 - -# Maximum number of connections established over local UNIX domain socket. -# Should be at least 1 + number of print queues. -# ------------------------------------------------------------------------ -# max local connections = 7 - -# UDP port to receive info requests and send responses (optional). -# ---------------------------------------------------------------- -# udp port = 9100 - -# TCP port to listen for connections (optional). -# ---------------------------------------------- -# tcp port = 9100 - -# Number of connection attempts to queue for TCP port. Default: 5. -# ---------------------------------------------------------------- -# tcp port backlog = 5 - -# Maximum number of connections established over TCP port. -# -------------------------------------------------------- -# max tcp connections = 50 - -# The hosts below are allowed to send info requests. -# May be used multiple times. -# If no ``info allow'' line is present, access is denied -# from all hosts. -# The asterisk line would enable info requests from everywhere, -# this is only recommended if your network is behind a firewall -# or router with ACLs restricting inbound traffic. -# ------------------------------------------------------------- -info allow = 192.0.2.0/24 -# info allow = * - -# The host below is allowed to send data level requests. -# May be used multiple times. -# If no ``data allow'' line is present, access is denied -# from all hosts. -# ------------------------------------------------------ -# data allow = 127.0.0.1/32 - -# The hosts below are allowed to send admin level requests. -# In the example here we deny admin level requests over network. -# If no ``admin allow'' line is present, access is denied -# from all hosts. -# -------------------------------------------------------------- -# admin allow = 127.0.0.1/32 - -# Log file name, optional. -# Default is ${localstatedir}/log/printqd/printqdlog . -# ---------------------------------------------------- -# log file = /var/log/printqd/printqd.log - -# By default only minimum log is written. -# You can configure additional features in a comma separated list: -# - db Write log entries for database changes. -# - info Write log entries for info requests and responses. -# Use the shortcut ``*'' or ``all'' for maximum logging, -# ``-'' or ``none'' for minimum. -# ---------------------------------------------------------------- -# log features = - - - -# A class is a group of printers. In the example below we assume -# two computer class rooms with printers lp and lp2. -# The limit configured for the class is the summary of pages on -# all printers in a class. -# ============================================================== - -[class cl-mfd] - -# Limits for specific users. Instead of the text ``unlimited'' -# we could specify page numbers or the text ``denied''. -# The right side consists of user name and limit. -# ------------------------------------------------------------ -user limit = Administrator unlimited -user limit = Administ unlimited -user limit = admin unlimited -user limit = root unlimited - -# Group limits are used for those users without a user-specific -# limit. -# The right side consists of group name and limit. -# ------------------------------------------------------------- -group limit = fac_m unlimited - -# The default limit is used for all users without user- or -# group-specific limit. -# The right side just contains the limit. -# -------------------------------------------------------- -default limit = 0 - -# The deny action decides wether a denied print job is -# removed (``remove'') or kept in the queue (``hold''). -# ----------------------------------------------------- -deny action = remove - - -# There are two further printer classes. -# ====================================== - -[class cl-color] -user limit = Administrator unlimited -user limit = Administ unlimited -user limit = admin unlimited -user limit = root unlimited -group limit = fac_m unlimited -default limit = 0 -deny action = remove - -[class cl-lab] -user limit = Administrator unlimited -user limit = Administ unlimited -user limit = admin unlimited -user limit = root unlimited -group limit = fac_m unlimited -default limit = 200 -deny action = remove - - -# Each printer must be a member of one of the classes configured above. -# ===================================================================== - -[printer lp1] - -# The printer lp1 has an alias lp configured in the printcap file. -# ---------------------------------------------------------------- -alias = lp - -# The printer is a member of the cl-lab class. -# -------------------------------------------- -class = cl-lab - - - -# The printer in the other computer classroom is also in the cl-lab class. -# ======================================================================== - -[printer lp2] -class = cl-lab - -# And the remaining printers -# ========================== - -[printer lpcolor] -class = cl-color - -[printer mfd] -class = cl-mfd - |