diff --git a/config/cups/cupsd.conf b/config/cups/cupsd.conf new file mode 100644 index 000000000..fc2817111 --- /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 e2ef01ffb..f6864f16a 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)