From 079afb4b07e6e3b32b4a29b1b60465103fe26ae6 Mon Sep 17 00:00:00 2001 From: ms Date: Sun, 4 Nov 2007 19:23:06 +0000 Subject: [PATCH] Made cups accessable. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1060 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/cups/cupsd.conf | 71 ++++++++++++++++++++++++++++++++++++++++++ lfs/cups | 1 + 2 files changed, 72 insertions(+) create mode 100644 config/cups/cupsd.conf diff --git a/config/cups/cupsd.conf b/config/cups/cupsd.conf new file mode 100644 index 0000000000..fc2817111c --- /dev/null +++ b/config/cups/cupsd.conf @@ -0,0 +1,71 @@ +# +# IPFire configuration file for the Common UNIX Printing System (CUPS) +# scheduler. See "man cupsd.conf" for a complete description of this +# file. +# + +# Log general information in error_log - change "info" to "debug" for +# troubleshooting... +LogLevel info + +# Administrator user group... +SystemGroup sys root + +# Only listen for connections from the local machine. +Listen 631 +Listen /var/run/cups/cups.sock + +# Show shared printers on the local network. +Browsing On +BrowseOrder allow,deny +BrowseAllow @LOCAL + +# Default authentication type, when authentication is required... +DefaultAuthType Basic + +# Restrict access to the server... + + Order allow,deny + Allow from All + + +# Restrict access to the admin pages... + + Encryption Required + Order allow,deny + Allow from All + + +# Restrict access to configuration files... + + AuthType Basic + Require user @SYSTEM + Order allow,deny + Allow from All + + +# Set the default printer/job policies... + + # Job-related operations must be done by the owner or an adminstrator... + + Require user @OWNER @SYSTEM + Order deny,allow + + + # All administration operations require an adminstrator to authenticate... + + AuthType Basic + Require user @SYSTEM + Order deny,allow + + + # Only the owner or an administrator can cancel or authenticate a job... + + Require user @OWNER @SYSTEM + Order deny,allow + + + + Order deny,allow + + diff --git a/lfs/cups b/lfs/cups index e2ef01ffb1..f6864f16a2 100644 --- a/lfs/cups +++ b/lfs/cups @@ -83,5 +83,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make install cd $(DIR_APP) && ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb install -v -m 754 $(DIR_SRC)/src/initscripts/init.d/cups /etc/rc.d/init.d + cp -fv $(DIR_SRC)/config/cups/cupsd.conf /var/ipfire/cups/ @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.39.2