]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
355e94dc | 2 | # "$Id: cupsd.conf.in 6720 2007-07-25 00:40:03Z mike $" |
ef416fc2 | 3 | # |
4 | # Sample configuration file for the Common UNIX Printing System (CUPS) | |
5 | # scheduler. See "man cupsd.conf" for a complete description of this | |
6 | # file. | |
7 | # | |
8 | ||
9 | # Log general information in error_log - change "info" to "debug" for | |
10 | # troubleshooting... | |
11 | LogLevel info | |
12 | ||
13 | # Administrator user group... | |
bd7854cb | 14 | SystemGroup @CUPS_SYSTEM_GROUPS@ |
f7deaa1a | 15 | @CUPS_SYSTEM_AUTHKEY@ |
ef416fc2 | 16 | |
17 | # Only listen for connections from the local machine. | |
18 | Listen localhost:@DEFAULT_IPP_PORT@ | |
19 | @CUPS_LISTEN_DOMAINSOCKET@ | |
20 | ||
21 | # Show shared printers on the local network. | |
22 | Browsing On | |
23 | BrowseOrder allow,deny | |
f7deaa1a | 24 | BrowseAllow all |
ef416fc2 | 25 | |
26 | # Default authentication type, when authentication is required... | |
27 | DefaultAuthType Basic | |
28 | ||
29 | # Restrict access to the server... | |
30 | <Location /> | |
31 | Order allow,deny | |
32 | Allow localhost | |
33 | </Location> | |
34 | ||
35 | # Restrict access to the admin pages... | |
36 | <Location /admin> | |
89d46774 | 37 | @ENCRYPTION_REQUIRED@ |
ef416fc2 | 38 | Order allow,deny |
39 | Allow localhost | |
40 | </Location> | |
41 | ||
42 | # Restrict access to configuration files... | |
43 | <Location /admin/conf> | |
bc44d920 | 44 | AuthType Default |
ef416fc2 | 45 | Require user @SYSTEM |
46 | Order allow,deny | |
47 | Allow localhost | |
48 | </Location> | |
49 | ||
50 | # Set the default printer/job policies... | |
51 | <Policy default> | |
cc0d019f | 52 | # Job-related operations must be done by the owner or an administrator... |
ef416fc2 | 53 | <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> |
54 | Require user @OWNER @SYSTEM | |
55 | Order deny,allow | |
56 | </Limit> | |
57 | ||
cc0d019f | 58 | # All administration operations require an administrator to authenticate... |
355e94dc | 59 | <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> |
bc44d920 | 60 | AuthType Default |
ef416fc2 | 61 | Require user @SYSTEM |
62 | Order deny,allow | |
63 | </Limit> | |
64 | ||
355e94dc MS |
65 | # All printer operations require a printer operator to authenticate... |
66 | <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> | |
67 | AuthType Default | |
68 | Require user @CUPS_DEFAULT_PRINTADMIN_AUTH@ | |
69 | Order deny,allow | |
70 | </Limit> | |
71 | ||
ef416fc2 | 72 | # Only the owner or an administrator can cancel or authenticate a job... |
73 | <Limit Cancel-Job CUPS-Authenticate-Job> | |
355e94dc | 74 | Require user @OWNER @CUPS_DEFAULT_PRINTADMIN_AUTH@ |
ef416fc2 | 75 | Order deny,allow |
76 | </Limit> | |
77 | ||
78 | <Limit All> | |
79 | Order deny,allow | |
80 | </Limit> | |
81 | </Policy> | |
82 | ||
83 | # | |
355e94dc | 84 | # End of "$Id: cupsd.conf.in 6720 2007-07-25 00:40:03Z mike $". |
ef416fc2 | 85 | # |