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