~billy-cina/canonical-training/test

« back to all changes in this revision

Viewing changes to config-server/etc/cups/cupsd.conf

  • Committer: Torsten Spindler
  • Date: 2007-05-15 02:04:00 UTC
  • Revision ID: torsten@canonical.com-20070515020400-955q1kxm4vgmcm2j
Added files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#
 
3
#   Sample configuration file for the Common UNIX Printing System (CUPS)
 
4
#   scheduler.  See "man cupsd.conf" for a complete description of this
 
5
#   file.
 
6
#
 
7
 
 
8
# Log general information in error_log - change "info" to "debug" for
 
9
# troubleshooting...
 
10
LogLevel warning
 
11
 
 
12
# Administrator user group...
 
13
SystemGroup lpadmin
 
14
 
 
15
# Only listen for connections from the local machine.
 
16
# These settings are configured in /etc/cups/cups.d/ports.conf so that
 
17
# changing them does not require to change this file.
 
18
# Listen localhost:631
 
19
# Listen /var/run/cups/cups.sock
 
20
 
 
21
# Show shared printers on the local network.
 
22
# The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
 
23
# so that changing it does not require to change this file.
 
24
# Browsing Off
 
25
BrowseOrder allow,deny
 
26
BrowseAllow @LOCAL
 
27
BrowseAddress @LOCAL
 
28
 
 
29
# Default authentication type, when authentication is required...
 
30
DefaultAuthType Basic
 
31
 
 
32
# Restrict access to the server...
 
33
<Location />
 
34
  Order allow,deny
 
35
  Allow localhost
 
36
  Allow @LOCAL
 
37
</Location>
 
38
 
 
39
# Restrict access to the admin pages...
 
40
<Location /admin>
 
41
  Order allow,deny
 
42
  Allow localhost
 
43
</Location>
 
44
 
 
45
# Restrict access to configuration files...
 
46
<Location /admin/conf>
 
47
  AuthType Basic
 
48
  Require user @SYSTEM
 
49
  Order allow,deny
 
50
  Allow localhost
 
51
</Location>
 
52
 
 
53
# Set the default printer/job policies...
 
54
<Policy default>
 
55
  # Job-related operations must be done by the owner or an adminstrator...
 
56
  <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>
 
57
    Require user @OWNER @SYSTEM
 
58
    Order deny,allow
 
59
  </Limit>
 
60
 
 
61
  # All administration operations require an adminstrator to authenticate...
 
62
  <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>
 
63
    AuthType Basic
 
64
    Require user @SYSTEM
 
65
    Order deny,allow
 
66
  </Limit>
 
67
 
 
68
  # Only the owner or an administrator can cancel or authenticate a job...
 
69
  <Limit Cancel-Job CUPS-Authenticate-Job>
 
70
    Require user @OWNER @SYSTEM
 
71
    Order deny,allow
 
72
  </Limit>
 
73
 
 
74
  <Limit All>
 
75
    Order deny,allow
 
76
  </Limit>
 
77
</Policy>
 
78
 
 
79
# Include files in /etc/cups/conf.d
 
80
Include /etc/cups/cups.d/ports.conf
 
81
Include /etc/cups/cups.d/browse.conf
 
82
 
 
83
#
 
84
#