MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/cups/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/cups/templates/edit-config.tmpl
<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 info\\n" +
"\\n" +
"\\n" +
"# Administrator user group...\\n" +
"SystemGroup sys root\\n" +
"\\n" +
"\\n" +
"# Only listen for connections from the local machine.\\n" +
"Listen 127.0.0.1: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";
}
</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>

Anon7 - 2021