Projet

Général

Profil

cupsd.conf

Joël Cuissinat, 30/11/2012 11:56

Télécharger (4,51 ko)

 
1
#
2
#
3
# Sample 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
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
12
# LogLevel debug2 gets usable now
13
MaxLogSize 0
14

    
15
# Administrator user group...
16
SystemGroup lpadmin
17

    
18

    
19
# Only listen for connections from the local machine.
20
Listen localhost:631
21
Listen /var/run/cups/cups.sock
22

    
23
# Show shared printers on the local network.
24
Browsing Off
25
BrowseOrder allow,deny
26
BrowseAllow all
27
BrowseLocalProtocols CUPS dnssd
28
BrowseAddress @LOCAL
29

    
30
# Default authentication type, when authentication is required...
31
DefaultAuthType Basic
32

    
33
# Web interface setting...
34
WebInterface Yes
35

    
36
# Restrict access to the server...
37
<Location />
38
  Order allow,deny
39
</Location>
40

    
41
# Restrict access to the admin pages...
42
<Location /admin>
43
  Order allow,deny
44
</Location>
45

    
46
# Restrict access to configuration files...
47
<Location /admin/conf>
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
#
143
#