Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
MaxLogSize 0
2
#
3
# "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
4
#
5
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
6
# complete description of this file.
7
#
8
 
9
# Log general information in error_log - change "warn" to "debug"
10
# for troubleshooting...
11
LogLevel warn
12
 
13
# Administrator user group...
14
SystemGroup sys root
15
 
16
 
17
# Only listen for connections from the local machine.
18
Listen localhost:631
19
Listen /var/run/cups/cups.sock
20
 
21
# Show shared printers on the local network.
22
Browsing On
23
BrowseOrder allow,deny
24
BrowseAllow all
25
BrowseLocalProtocols CUPS dnssd
26
 
27
# Default authentication type, when authentication is required...
28
DefaultAuthType Basic
29
 
30
# Restrict access to the server...
31
<Location />
32
  Order allow,deny
33
</Location>
34
 
35
# Restrict access to the admin pages...
36
<Location /admin>
37
  Order allow,deny
38
</Location>
39
 
40
# Restrict access to configuration files...
41
<Location /admin/conf>
42
  AuthType Default
43
  Require user @SYSTEM
44
  Order allow,deny
45
</Location>
46
 
47
# Set the default printer/job policies...
48
<Policy default>
49
  # Job-related operations must be done by the owner or an administrator...
50
  <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 CUPS-Get-Document>
51
    Require user @OWNER @SYSTEM
52
    Order deny,allow
53
  </Limit>
54
 
55
  # All administration operations require an administrator to authenticate...
56
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
57
    AuthType Default
58
    Require user @SYSTEM
59
    Order deny,allow
60
  </Limit>
61
 
62
  # All printer operations require a printer operator to authenticate...
63
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
64
    AuthType Default
65
    Require user @SYSTEM
66
    Order deny,allow
67
  </Limit>
68
 
69
  # Only the owner or an administrator can cancel or authenticate a job...
70
  <Limit Cancel-Job CUPS-Authenticate-Job>
71
    Require user @OWNER @SYSTEM
72
    Order deny,allow
73
  </Limit>
74
 
75
  <Limit All>
76
    Order deny,allow
77
  </Limit>
78
</Policy>
79
 
80
# Set the authenticated printer/job policies...
81
<Policy authenticated>
82
  # Job-related operations must be done by the owner or an administrator...
83
  <Limit Create-Job Print-Job Print-URI>
84
    AuthType Default
85
    Order deny,allow
86
  </Limit>
87
 
88
  <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 CUPS-Get-Document>
89
    AuthType Default
90
    Require user @OWNER @SYSTEM
91
    Order deny,allow
92
  </Limit>
93
 
94
  # All administration operations require an administrator to authenticate...
95
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
96
    AuthType Default
97
    Require user @SYSTEM
98
    Order deny,allow
99
  </Limit>
100
 
101
  # All printer operations require a printer operator to authenticate...
102
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
103
    AuthType Default
104
    Require user @SYSTEM
105
    Order deny,allow
106
  </Limit>
107
 
108
  # Only the owner or an administrator can cancel or authenticate a job...
109
  <Limit Cancel-Job CUPS-Authenticate-Job>
110
    AuthType Default
111
    Require user @OWNER @SYSTEM
112
    Order deny,allow
113
  </Limit>
114
 
115
  <Limit All>
116
    Order deny,allow
117
  </Limit>
118
</Policy>
119
 
120
#
121
# End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
122
#