192 |
- |
1 |
MaxLogSize 0
|
|
|
2 |
#
|
|
|
3 |
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
|
|
|
4 |
# complete description of this file.
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
# Log general information in error_log - change "warn" to "debug"
|
|
|
8 |
# for troubleshooting...
|
|
|
9 |
LogLevel warn
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
# Only listen for connections from the local machine.
|
|
|
13 |
Listen localhost:631
|
|
|
14 |
Listen /var/run/cups/cups.sock
|
|
|
15 |
|
|
|
16 |
# Show shared printers on the local network.
|
|
|
17 |
Browsing On
|
|
|
18 |
BrowseLocalProtocols dnssd
|
|
|
19 |
|
|
|
20 |
# Default authentication type, when authentication is required...
|
|
|
21 |
DefaultAuthType Basic
|
|
|
22 |
|
|
|
23 |
# Web interface setting...
|
|
|
24 |
WebInterface Yes
|
|
|
25 |
|
209 |
- |
26 |
# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
|
|
|
27 |
IdleExitTimeout 0
|
|
|
28 |
|
192 |
- |
29 |
# Restrict access to the server...
|
|
|
30 |
<Location />
|
|
|
31 |
Order allow,deny
|
|
|
32 |
</Location>
|
|
|
33 |
|
|
|
34 |
# Restrict access to the admin pages...
|
|
|
35 |
<Location /admin>
|
|
|
36 |
Order allow,deny
|
|
|
37 |
</Location>
|
|
|
38 |
|
|
|
39 |
# Restrict access to configuration files...
|
|
|
40 |
<Location /admin/conf>
|
|
|
41 |
AuthType Default
|
|
|
42 |
Require user @SYSTEM
|
|
|
43 |
Order allow,deny
|
|
|
44 |
</Location>
|
|
|
45 |
|
|
|
46 |
# Restrict access to log files...
|
|
|
47 |
<Location /admin/log>
|
|
|
48 |
AuthType Default
|
|
|
49 |
Require user @SYSTEM
|
|
|
50 |
Order allow,deny
|
|
|
51 |
</Location>
|
|
|
52 |
|
|
|
53 |
# Set the default printer/job policies...
|
|
|
54 |
<Policy default>
|
|
|
55 |
# Job/subscription privacy...
|
|
|
56 |
JobPrivateAccess default
|
|
|
57 |
JobPrivateValues default
|
|
|
58 |
SubscriptionPrivateAccess default
|
|
|
59 |
SubscriptionPrivateValues default
|
|
|
60 |
|
|
|
61 |
# Job-related operations must be done by the owner or an administrator...
|
|
|
62 |
<Limit Create-Job Print-Job Print-URI Validate-Job>
|
|
|
63 |
Order deny,allow
|
|
|
64 |
</Limit>
|
|
|
65 |
|
|
|
66 |
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
|
|
|
67 |
Require user @OWNER @SYSTEM
|
|
|
68 |
Order deny,allow
|
|
|
69 |
</Limit>
|
|
|
70 |
|
|
|
71 |
# All administration operations require an administrator to authenticate...
|
|
|
72 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
|
|
|
73 |
AuthType Default
|
|
|
74 |
Require user @SYSTEM
|
|
|
75 |
Order deny,allow
|
|
|
76 |
</Limit>
|
|
|
77 |
|
|
|
78 |
# All printer operations require a printer operator to authenticate...
|
|
|
79 |
<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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
|
|
|
80 |
AuthType Default
|
|
|
81 |
Require user @SYSTEM
|
|
|
82 |
Order deny,allow
|
|
|
83 |
</Limit>
|
|
|
84 |
|
|
|
85 |
# Only the owner or an administrator can cancel or authenticate a job...
|
|
|
86 |
<Limit Cancel-Job CUPS-Authenticate-Job>
|
|
|
87 |
Require user @OWNER @SYSTEM
|
|
|
88 |
Order deny,allow
|
|
|
89 |
</Limit>
|
|
|
90 |
|
|
|
91 |
<Limit All>
|
|
|
92 |
Order deny,allow
|
|
|
93 |
</Limit>
|
|
|
94 |
</Policy>
|
|
|
95 |
|
|
|
96 |
# Set the authenticated printer/job policies...
|
|
|
97 |
<Policy authenticated>
|
|
|
98 |
# Job/subscription privacy...
|
|
|
99 |
JobPrivateAccess default
|
|
|
100 |
JobPrivateValues default
|
|
|
101 |
SubscriptionPrivateAccess default
|
|
|
102 |
SubscriptionPrivateValues default
|
|
|
103 |
|
|
|
104 |
# Job-related operations must be done by the owner or an administrator...
|
|
|
105 |
<Limit Create-Job Print-Job Print-URI Validate-Job>
|
|
|
106 |
AuthType Default
|
|
|
107 |
Order deny,allow
|
|
|
108 |
</Limit>
|
|
|
109 |
|
|
|
110 |
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
|
|
|
111 |
AuthType Default
|
|
|
112 |
Require user @OWNER @SYSTEM
|
|
|
113 |
Order deny,allow
|
|
|
114 |
</Limit>
|
|
|
115 |
|
|
|
116 |
# All administration operations require an administrator to authenticate...
|
|
|
117 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
|
|
|
118 |
AuthType Default
|
|
|
119 |
Require user @SYSTEM
|
|
|
120 |
Order deny,allow
|
|
|
121 |
</Limit>
|
|
|
122 |
|
|
|
123 |
# All printer operations require a printer operator to authenticate...
|
|
|
124 |
<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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
|
|
|
125 |
AuthType Default
|
|
|
126 |
Require user @SYSTEM
|
|
|
127 |
Order deny,allow
|
|
|
128 |
</Limit>
|
|
|
129 |
|
|
|
130 |
# Only the owner or an administrator can cancel or authenticate a job...
|
|
|
131 |
<Limit Cancel-Job CUPS-Authenticate-Job>
|
|
|
132 |
AuthType Default
|
|
|
133 |
Require user @OWNER @SYSTEM
|
|
|
134 |
Order deny,allow
|
|
|
135 |
</Limit>
|
|
|
136 |
|
|
|
137 |
<Limit All>
|
|
|
138 |
Order deny,allow
|
|
|
139 |
</Limit>
|
|
|
140 |
</Policy>
|
|
|
141 |
|
|
|
142 |
# Set the kerberized printer/job policies...
|
|
|
143 |
<Policy kerberos>
|
|
|
144 |
# Job/subscription privacy...
|
|
|
145 |
JobPrivateAccess default
|
|
|
146 |
JobPrivateValues default
|
|
|
147 |
SubscriptionPrivateAccess default
|
|
|
148 |
SubscriptionPrivateValues default
|
|
|
149 |
|
|
|
150 |
# Job-related operations must be done by the owner or an administrator...
|
|
|
151 |
<Limit Create-Job Print-Job Print-URI Validate-Job>
|
|
|
152 |
AuthType Negotiate
|
|
|
153 |
Order deny,allow
|
|
|
154 |
</Limit>
|
|
|
155 |
|
|
|
156 |
<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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
|
|
|
157 |
AuthType Negotiate
|
|
|
158 |
Require user @OWNER @SYSTEM
|
|
|
159 |
Order deny,allow
|
|
|
160 |
</Limit>
|
|
|
161 |
|
|
|
162 |
# All administration operations require an administrator to authenticate...
|
|
|
163 |
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
|
|
|
164 |
AuthType Default
|
|
|
165 |
Require user @SYSTEM
|
|
|
166 |
Order deny,allow
|
|
|
167 |
</Limit>
|
|
|
168 |
|
|
|
169 |
# All printer operations require a printer operator to authenticate...
|
|
|
170 |
<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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
|
|
|
171 |
AuthType Default
|
|
|
172 |
Require user @SYSTEM
|
|
|
173 |
Order deny,allow
|
|
|
174 |
</Limit>
|
|
|
175 |
|
|
|
176 |
# Only the owner or an administrator can cancel or authenticate a job...
|
|
|
177 |
<Limit Cancel-Job CUPS-Authenticate-Job>
|
|
|
178 |
AuthType Negotiate
|
|
|
179 |
Require user @OWNER @SYSTEM
|
|
|
180 |
Order deny,allow
|
|
|
181 |
</Limit>
|
|
|
182 |
|
|
|
183 |
<Limit All>
|
|
|
184 |
Order deny,allow
|
|
|
185 |
</Limit>
|
|
|
186 |
</Policy>
|