home *** CD-ROM | disk | FTP | other *** search
- <SCRIPT TYPE="text/javascript">
- function reset_config()
- {
- document.cups.CUPSDCONF.value =
- "# Log general information in error_log - change \\"info\\" to \\"debug\\" for\\n" +
- "# troubleshooting...\\n" +
- "LogLevel warning\\n" +
- "\\n" +
- "\\n" +
- "# Administrator user group...\\n" +
- "SystemGroup lpadmin\\n" +
- "\\n" +
- "\\n" +
- "# Only listen for connections from the local machine.\\n" +
- "Listen localhost:631\\n" +
- "Listen /var/run/cups/cups.sock\\n" +
- "\\n" +
- "\\n" +
- "# Show shared printers on the local network.\\n" +
- "Browsing On\\n" +
- "BrowseOrder allow,deny\\n" +
- "BrowseAllow @LOCAL\\n" +
- "\\n" +
- "\\n" +
- "# Authenticate against system accounts by default...\\n" +
- "DefaultAuthType Basic\\n" +
- "\\n" +
- "# Restrict access to the server...\\n" +
- "<Location />\\n" +
- " Order allow,deny\\n" +
- " Allow localhost\\n" +
- "</Location>\\n" +
- "\\n" +
- "# Restrict access to the admin pages...\\n" +
- "<Location /admin>\\n" +
- " Encryption Required\\n" +
- " Order allow,deny\\n" +
- " Allow localhost\\n" +
- "</Location>\\n" +
- "\\n" +
- "# Restrict access to configuration files...\\n" +
- "<Location /admin/conf>\\n" +
- " AuthType Basic\\n" +
- " Require user @SYSTEM\\n" +
- " Order allow,deny\\n" +
- " Allow localhost\\n" +
- "</Location>\\n" +
- "\\n" +
- "# Set the default printer/job policies...\\n" +
- "<Policy default>\\n" +
- " # Job-related operations must be done by the owner or an adminstrator...\\n" +
- " <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>\\n" +
- " Require user @OWNER @SYSTEM\\n" +
- " Order deny,allow\\n" +
- " </Limit>\\n" +
- "\\n" +
- " # All administration operations require an adminstrator to authenticate...\\n" +
- " <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>\\n" +
- " AuthType Basic\\n" +
- " Require user @SYSTEM\\n" +
- " Order deny,allow\\n" +
- " </Limit>\\n" +
- "\\n" +
- " # Only the owner or an administrator can cancel or authenticate a job...\\n" +
- " <Limit Cancel-Job CUPS-Authenticate-Job>\\n" +
- " Require user @OWNER @SYSTEM\\n" +
- " Order deny,allow\\n" +
- " </Limit>\\n" +
- "\\n" +
- " <Limit All>\\n" +
- " Order deny,allow\\n" +
- " </Limit>\\n" +
- "</Policy>\\n" +
- "\\n" +
- "#\\n" +
- "# Printcap: the name of the printcap file. Default is /etc/printcap.\\n" +
- "# Leave blank to disable printcap file generation.\\n" +
- "#\\n" +
- "\\n" +
- "Printcap /var/run/cups/printcap\\n" +
- "\\n" +
- "#\\n" +
- "#PrintcapFormat BSD\\n" +
- "#PrintcapFormat Solaris\\n" +
- "\\n" +
- "#\\n" +
- "# PrintcapGUI: the name of the GUI options panel program to associate\\n" +
- "# with print queues under IRIX. The default is \\"/usr/bin/glpoptions\\"\\n" +
- "# from ESP Print Pro.\\n" +
- "#\\n" +
- "# This option is only used under IRIX; the options panel program\\n" +
- "# must accept the \\"-d printer\\" and \\"-o options\\" options and write\\n" +
- "# the selected printer options back to stdout on completion.\\n" +
- "#\\n" +
- "\\n" +
- "#PrintcapGUI /usr/bin/glpoptions\\n";
- }
- </SCRIPT>
-
- <H2 CLASS="title">Server Configuration File</H2>
-
- <FORM NAME="cups" METHOD="POST" ACTION="/admin/">
-
- <INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
-
- <TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25">{CUPSDCONF}</TEXTAREA>
-
- <P><INPUT TYPE="IMAGE" SRC="/images/button-save-changes.gif"
- ALT="Save Changes"> <A
- HREF="javascript:reset_config();"><IMG
- SRC="/images/button-use-default-config.gif" CLASS="button"
- ALT="Use Default Configuration File"></A></P>
-
- </FORM>
-