]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - conf/cupsd.conf.in
Fix a few STACK-detected issues:
[thirdparty/cups.git] / conf / cupsd.conf.in
... / ...
CommitLineData
1#
2# "$Id$"
3#
4# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
5# complete description of this file.
6#
7
8# Log general information in error_log - change "@CUPS_LOG_LEVEL@" to "debug"
9# for troubleshooting...
10LogLevel @CUPS_LOG_LEVEL@
11
12# Only listen for connections from the local machine.
13Listen localhost:@DEFAULT_IPP_PORT@
14@CUPS_LISTEN_DOMAINSOCKET@
15
16# Show shared printers on the local network.
17Browsing On
18BrowseLocalProtocols @CUPS_BROWSE_LOCAL_PROTOCOLS@
19
20# Default authentication type, when authentication is required...
21DefaultAuthType Basic
22
23# Web interface setting...
24WebInterface @CUPS_WEBIF@
25
26# Restrict access to the server...
27<Location />
28 Order allow,deny
29</Location>
30
31# Restrict access to the admin pages...
32<Location /admin>
33 Order allow,deny
34</Location>
35
36# Restrict access to configuration files...
37<Location /admin/conf>
38 AuthType Default
39 Require user @SYSTEM
40 Order allow,deny
41</Location>
42
43# Set the default printer/job policies...
44<Policy default>
45 # Job/subscription privacy...
46 JobPrivateAccess default
47 JobPrivateValues default
48 SubscriptionPrivateAccess default
49 SubscriptionPrivateValues default
50
51 # Job-related operations must be done by the owner or an administrator...
52 <Limit Create-Job Print-Job Print-URI Validate-Job>
53 Order deny,allow
54 </Limit>
55
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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
57 Require user @OWNER @SYSTEM
58 Order deny,allow
59 </Limit>
60
61 # All administration operations require an administrator to authenticate...
62 <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
63 AuthType Default
64 Require user @SYSTEM
65 Order deny,allow
66 </Limit>
67
68 # All printer operations require a printer operator to authenticate...
69 <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>
70 AuthType Default
71 Require user @CUPS_DEFAULT_PRINTOPERATOR_AUTH@
72 Order deny,allow
73 </Limit>
74
75 # Only the owner or an administrator can cancel or authenticate a job...
76 <Limit Cancel-Job CUPS-Authenticate-Job>
77 Require user @OWNER @CUPS_DEFAULT_PRINTOPERATOR_AUTH@
78 Order deny,allow
79 </Limit>
80
81 <Limit All>
82 Order deny,allow
83 </Limit>
84</Policy>
85
86# Set the authenticated printer/job policies...
87<Policy authenticated>
88 # Job/subscription privacy...
89 JobPrivateAccess default
90 JobPrivateValues default
91 SubscriptionPrivateAccess default
92 SubscriptionPrivateValues default
93
94 # Job-related operations must be done by the owner or an administrator...
95 <Limit Create-Job Print-Job Print-URI Validate-Job>
96 AuthType Default
97 Order deny,allow
98 </Limit>
99
100 <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>
101 AuthType Default
102 Require user @OWNER @SYSTEM
103 Order deny,allow
104 </Limit>
105
106 # All administration operations require an administrator to authenticate...
107 <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
108 AuthType Default
109 Require user @SYSTEM
110 Order deny,allow
111 </Limit>
112
113 # All printer operations require a printer operator to authenticate...
114 <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>
115 AuthType Default
116 Require user @CUPS_DEFAULT_PRINTOPERATOR_AUTH@
117 Order deny,allow
118 </Limit>
119
120 # Only the owner or an administrator can cancel or authenticate a job...
121 <Limit Cancel-Job CUPS-Authenticate-Job>
122 AuthType Default
123 Require user @OWNER @CUPS_DEFAULT_PRINTOPERATOR_AUTH@
124 Order deny,allow
125 </Limit>
126
127 <Limit All>
128 Order deny,allow
129 </Limit>
130</Policy>
131
132#
133# End of "$Id$".
134#