home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / cups / templates / edit-config.tmpl < prev    next >
Encoding:
Text File  |  2007-04-04  |  3.8 KB  |  115 lines

  1. <SCRIPT TYPE="text/javascript">
  2. function reset_config()
  3. {
  4.   document.cups.CUPSDCONF.value =
  5. "# Log general information in error_log - change \\"info\\" to \\"debug\\" for\\n" +
  6. "# troubleshooting...\\n" +
  7. "LogLevel warning\\n" +
  8. "\\n" +
  9. "\\n" +
  10. "# Administrator user group...\\n" +
  11. "SystemGroup lpadmin\\n" +
  12. "\\n" +
  13. "\\n" +
  14. "# Only listen for connections from the local machine.\\n" +
  15. "Listen localhost:631\\n" +
  16. "Listen /var/run/cups/cups.sock\\n" +
  17. "\\n" +
  18. "\\n" +
  19. "# Show shared printers on the local network.\\n" +
  20. "Browsing On\\n" +
  21. "BrowseOrder allow,deny\\n" +
  22. "BrowseAllow @LOCAL\\n" +
  23. "\\n" +
  24. "\\n" +
  25. "# Authenticate against system accounts by default...\\n" +
  26. "DefaultAuthType Basic\\n" +
  27. "\\n" +
  28. "# Restrict access to the server...\\n" +
  29. "<Location />\\n" +
  30. "  Order allow,deny\\n" +
  31. "  Allow localhost\\n" +
  32. "</Location>\\n" +
  33. "\\n" +
  34. "# Restrict access to the admin pages...\\n" +
  35. "<Location /admin>\\n" +
  36. "  Encryption Required\\n" +
  37. "  Order allow,deny\\n" +
  38. "  Allow localhost\\n" +
  39. "</Location>\\n" +
  40. "\\n" +
  41. "# Restrict access to configuration files...\\n" +
  42. "<Location /admin/conf>\\n" +
  43. "  AuthType Basic\\n" +
  44. "  Require user @SYSTEM\\n" +
  45. "  Order allow,deny\\n" +
  46. "  Allow localhost\\n" +
  47. "</Location>\\n" +
  48. "\\n" +
  49. "# Set the default printer/job policies...\\n" +
  50. "<Policy default>\\n" +
  51. "  # Job-related operations must be done by the owner or an adminstrator...\\n" +
  52. "  <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" +
  53. "    Require user @OWNER @SYSTEM\\n" +
  54. "    Order deny,allow\\n" +
  55. "  </Limit>\\n" +
  56. "\\n" +
  57. "  # All administration operations require an adminstrator to authenticate...\\n" +
  58. "  <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" +
  59. "    AuthType Basic\\n" +
  60. "    Require user @SYSTEM\\n" +
  61. "    Order deny,allow\\n" +
  62. "  </Limit>\\n" +
  63. "\\n" +
  64. "  # Only the owner or an administrator can cancel or authenticate a job...\\n" +
  65. "  <Limit Cancel-Job CUPS-Authenticate-Job>\\n" +
  66. "    Require user @OWNER @SYSTEM\\n" +
  67. "    Order deny,allow\\n" +
  68. "  </Limit>\\n" +
  69. "\\n" +
  70. "  <Limit All>\\n" +
  71. "    Order deny,allow\\n" +
  72. "  </Limit>\\n" +
  73. "</Policy>\\n" +
  74. "\\n" +
  75. "#\\n" +
  76. "# Printcap: the name of the printcap file.  Default is /etc/printcap.\\n" +
  77. "# Leave blank to disable printcap file generation.\\n" +
  78. "#\\n" +
  79. "\\n" +
  80. "Printcap /var/run/cups/printcap\\n" +
  81. "\\n" +
  82. "#\\n" +
  83. "#PrintcapFormat BSD\\n" +
  84. "#PrintcapFormat Solaris\\n" +
  85. "\\n" +
  86. "#\\n" +
  87. "# PrintcapGUI: the name of the GUI options panel program to associate\\n" +
  88. "# with print queues under IRIX.  The default is \\"/usr/bin/glpoptions\\"\\n" +
  89. "# from ESP Print Pro.\\n" +
  90. "#\\n" +
  91. "# This option is only used under IRIX; the options panel program\\n" +
  92. "# must accept the \\"-d printer\\" and \\"-o options\\" options and write\\n" +
  93. "# the selected printer options back to stdout on completion.\\n" +
  94. "#\\n" +
  95. "\\n" +
  96. "#PrintcapGUI /usr/bin/glpoptions\\n";
  97. }
  98. </SCRIPT>
  99.  
  100. <H2 CLASS="title">Server Configuration File</H2>
  101.  
  102. <FORM NAME="cups" METHOD="POST" ACTION="/admin/">
  103.  
  104. <INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
  105.  
  106. <TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25">{CUPSDCONF}</TEXTAREA>
  107.  
  108. <P><INPUT TYPE="IMAGE" SRC="/images/button-save-changes.gif"
  109. ALT="Save Changes"> <A
  110. HREF="javascript:reset_config();"><IMG
  111. SRC="/images/button-use-default-config.gif" CLASS="button"
  112. ALT="Use Default Configuration File"></A></P>
  113.  
  114. </FORM>
  115.