]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/cupsd.conf.in
Merge changes from CUPS 1.4svn-r7961.
[thirdparty/cups.git] / conf / cupsd.conf.in
CommitLineData
ef416fc2 1#
b19ccc9e 2# "$Id: cupsd.conf.in 7888 2008-08-29 21:16:56Z 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
1f0275e3
MS
9# Log general information in error_log - change "@CUPS_LOG_LEVEL@" to "debug"
10# for troubleshooting...
11LogLevel @CUPS_LOG_LEVEL@
ef416fc2 12
13# Administrator user group...
bd7854cb 14SystemGroup @CUPS_SYSTEM_GROUPS@
f7deaa1a 15@CUPS_SYSTEM_AUTHKEY@
ef416fc2 16
17# Only listen for connections from the local machine.
18Listen localhost:@DEFAULT_IPP_PORT@
19@CUPS_LISTEN_DOMAINSOCKET@
20
21# Show shared printers on the local network.
22Browsing On
23BrowseOrder allow,deny
f7deaa1a 24BrowseAllow all
01ce6322 25BrowseLocalProtocols
ef416fc2 26
27# Default authentication type, when authentication is required...
28DefaultAuthType Basic
29
30# Restrict access to the server...
31<Location />
32 Order allow,deny
ef416fc2 33</Location>
34
35# Restrict access to the admin pages...
36<Location /admin>
89d46774 37@ENCRYPTION_REQUIRED@
ef416fc2 38 Order allow,deny
ef416fc2 39</Location>
40
41# Restrict access to configuration files...
42<Location /admin/conf>
bc44d920 43 AuthType Default
ef416fc2 44 Require user @SYSTEM
45 Order allow,deny
ef416fc2 46</Location>
47
48# Set the default printer/job policies...
49<Policy default>
cc0d019f 50 # Job-related operations must be done by the owner or an administrator...
dd1abb6b 51 <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>
ef416fc2 52 Require user @OWNER @SYSTEM
53 Order deny,allow
54 </Limit>
55
cc0d019f 56 # All administration operations require an administrator to authenticate...
ae71f5de 57 <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
bc44d920 58 AuthType Default
ef416fc2 59 Require user @SYSTEM
60 Order deny,allow
61 </Limit>
62
355e94dc
MS
63 # All printer operations require a printer operator to authenticate...
64 <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>
65 AuthType Default
66 Require user @CUPS_DEFAULT_PRINTADMIN_AUTH@
67 Order deny,allow
68 </Limit>
69
ef416fc2 70 # Only the owner or an administrator can cancel or authenticate a job...
71 <Limit Cancel-Job CUPS-Authenticate-Job>
355e94dc 72 Require user @OWNER @CUPS_DEFAULT_PRINTADMIN_AUTH@
ef416fc2 73 Order deny,allow
74 </Limit>
75
76 <Limit All>
77 Order deny,allow
78 </Limit>
79</Policy>
80
839a51c8
MS
81# Set the authenticated printer/job policies...
82<Policy authenticated>
83 # Job-related operations must be done by the owner or an administrator...
c5571a1d
MS
84 <Limit Create-Job Print-Job Print-URI>
85 AuthType Default
86 Order deny,allow
87 </Limit>
88
dd1abb6b 89 <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>
75bd9771 90 AuthType Default
839a51c8
MS
91 Require user @OWNER @SYSTEM
92 Order deny,allow
839a51c8
MS
93 </Limit>
94
95 # All administration operations require an administrator to authenticate...
96 <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
97 AuthType Default
98 Require user @SYSTEM
99 Order deny,allow
100 </Limit>
101
102 # All printer operations require a printer operator to authenticate...
103 <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>
104 AuthType Default
105 Require user @CUPS_DEFAULT_PRINTADMIN_AUTH@
106 Order deny,allow
107 </Limit>
108
109 # Only the owner or an administrator can cancel or authenticate a job...
110 <Limit Cancel-Job CUPS-Authenticate-Job>
75bd9771 111 AuthType Default
839a51c8
MS
112 Require user @OWNER @CUPS_DEFAULT_PRINTADMIN_AUTH@
113 Order deny,allow
839a51c8
MS
114 </Limit>
115
116 <Limit All>
839a51c8 117 AuthType Default
75bd9771 118 Order deny,allow
839a51c8
MS
119 </Limit>
120</Policy>
121
ef416fc2 122#
b19ccc9e 123# End of "$Id: cupsd.conf.in 7888 2008-08-29 21:16:56Z mike $".
ef416fc2 124#