commit | author | age
|
0711af
|
1 |
|
T |
2 |
############################################################ |
|
3 |
# # |
|
4 |
# Configuration file for pure-ftpd wrappers # |
|
5 |
# # |
|
6 |
############################################################ |
|
7 |
|
|
8 |
# If you want to run Pure-FTPd with this configuration |
|
9 |
# instead of command-line options, please run the |
|
10 |
# following command : |
|
11 |
# |
|
12 |
# /usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf |
|
13 |
# |
|
14 |
# Please don't forget to have a look at documentation at |
|
15 |
# http://www.pureftpd.org/documentation.shtml for a complete list of |
|
16 |
# options. |
|
17 |
|
|
18 |
# Cage in every user in his home directory |
|
19 |
|
|
20 |
ChrootEveryone yes |
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
# If the previous option is set to "no", members of the following group |
|
25 |
# won't be caged. Others will be. If you don't want chroot()ing anyone, |
|
26 |
# just comment out ChrootEveryone and TrustedGID. |
|
27 |
|
|
28 |
# TrustedGID 100 |
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
# Turn on compatibility hacks for broken clients |
|
33 |
|
|
34 |
BrokenClientsCompatibility no |
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
# Maximum number of simultaneous users |
|
39 |
|
|
40 |
MaxClientsNumber 50 |
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
# Fork in background |
|
45 |
|
|
46 |
Daemonize yes |
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
# Maximum number of sim clients with the same IP address |
|
51 |
|
|
52 |
MaxClientsPerIP 8 |
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
# If you want to log all client commands, set this to "yes". |
|
57 |
# This directive can be duplicated to also log server responses. |
|
58 |
|
|
59 |
VerboseLog no |
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
# List dot-files even when the client doesn't send "-a". |
|
64 |
|
|
65 |
DisplayDotFiles yes |
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
# Don't allow authenticated users - have a public anonymous FTP only. |
|
70 |
|
|
71 |
AnonymousOnly no |
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
# Disallow anonymous connections. Only allow authenticated users. |
|
76 |
|
|
77 |
NoAnonymous yes |
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
# Syslog facility (auth, authpriv, daemon, ftp, security, user, local*) |
|
82 |
# The default facility is "ftp". "none" disables logging. |
|
83 |
|
|
84 |
SyslogFacility ftp |
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
# Display fortune cookies |
|
89 |
|
|
90 |
# FortunesFile /usr/share/fortune/zippy |
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
# Don't resolve host names in log files. Logs are less verbose, but |
|
95 |
# it uses less bandwidth. Set this to "yes" on very busy servers or |
|
96 |
# if you don't have a working DNS. |
|
97 |
|
|
98 |
DontResolve yes |
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
# Maximum idle time in minutes (default = 15 minutes) |
|
103 |
|
|
104 |
MaxIdleTime 15 |
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
# LDAP configuration file (see README.LDAP) |
|
109 |
|
|
110 |
# LDAPConfigFile /etc/pure-ftpd/pureftpd-ldap.conf |
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
# MySQL configuration file (see README.MySQL) |
|
115 |
|
|
116 |
MySQLConfigFile /etc/pure-ftpd/pureftpd-mysql.conf |
|
117 |
|
|
118 |
|
|
119 |
# Postgres configuration file (see README.PGSQL) |
|
120 |
|
|
121 |
# PGSQLConfigFile /etc/pure-ftpd/pureftpd-pgsql.conf |
|
122 |
|
|
123 |
|
|
124 |
# PureDB user database (see README.Virtual-Users) |
|
125 |
|
|
126 |
# PureDB /etc/pure-ftpd/pureftpd.pdb |
|
127 |
|
|
128 |
|
|
129 |
# Path to pure-authd socket (see README.Authentication-Modules) |
|
130 |
|
|
131 |
# ExtAuth /var/run/ftpd.sock |
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
# If you want to enable PAM authentication, uncomment the following line |
|
136 |
|
|
137 |
# PAMAuthentication yes |
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
# If you want simple Unix (/etc/passwd) authentication, uncomment this |
|
142 |
|
|
143 |
# UnixAuthentication yes |
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
# Please note that LDAPConfigFile, MySQLConfigFile, PAMAuthentication and |
|
148 |
# UnixAuthentication can be used only once, but they can be combined |
|
149 |
# together. For instance, if you use MySQLConfigFile, then UnixAuthentication, |
|
150 |
# the SQL server will be asked. If the SQL authentication fails because the |
|
151 |
# user wasn't found, another try # will be done with /etc/passwd and |
|
152 |
# /etc/shadow. If the SQL authentication fails because the password was wrong, |
|
153 |
# the authentication chain stops here. Authentication methods are chained in |
|
154 |
# the order they are given. |
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
# 'ls' recursion limits. The first argument is the maximum number of |
|
159 |
# files to be displayed. The second one is the max subdirectories depth |
|
160 |
|
|
161 |
LimitRecursion 7500 8 |
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
# Are anonymous users allowed to create new directories ? |
|
166 |
|
|
167 |
AnonymousCanCreateDirs no |
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
# If the system is more loaded than the following value, |
|
172 |
# anonymous users aren't allowed to download. |
|
173 |
|
|
174 |
MaxLoad 4 |
|
175 |
|
|
176 |
|
|
177 |
|
|
178 |
# Port range for passive connections replies. - for firewalling. |
|
179 |
|
|
180 |
# PassivePortRange 30000 50000 |
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
# Force an IP address in PASV/EPSV/SPSV replies. - for NAT. |
|
185 |
# Symbolic host names are also accepted for gateways with dynamic IP |
|
186 |
# addresses. |
|
187 |
|
|
188 |
# ForcePassiveIP 192.168.0.1 |
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
# Upload/download ratio for anonymous users. |
|
193 |
|
|
194 |
# AnonymousRatio 1 10 |
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
# Upload/download ratio for all users. |
|
199 |
# This directive superscedes the previous one. |
|
200 |
|
|
201 |
# UserRatio 1 10 |
|
202 |
|
|
203 |
|
|
204 |
|
|
205 |
# Disallow downloading of files owned by "ftp", ie. |
|
206 |
# files that were uploaded but not validated by a local admin. |
|
207 |
|
|
208 |
AntiWarez yes |
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
# IP address/port to listen to (default=all IP and port 21). |
|
213 |
|
|
214 |
# Bind 127.0.0.1,21 |
|
215 |
|
|
216 |
|
|
217 |
|
|
218 |
# Maximum bandwidth for anonymous users in KB/s |
|
219 |
|
|
220 |
# AnonymousBandwidth 8 |
|
221 |
|
|
222 |
|
|
223 |
|
|
224 |
# Maximum bandwidth for *all* users (including anonymous) in KB/s |
|
225 |
# Use AnonymousBandwidth *or* UserBandwidth, both makes no sense. |
|
226 |
|
|
227 |
# UserBandwidth 8 |
|
228 |
|
|
229 |
|
|
230 |
|
|
231 |
# File creation mask. <umask for files>:<umask for dirs> . |
|
232 |
# 177:077 if you feel paranoid. |
|
233 |
|
|
234 |
Umask 133:022 |
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
# Minimum UID for an authenticated user to log in. |
|
239 |
|
|
240 |
MinUID 500 |
|
241 |
|
|
242 |
|
|
243 |
|
|
244 |
# Do not use the /etc/ftpusers file to disable accounts. We're already |
|
245 |
# using MinUID to block users with uid < 500 |
|
246 |
|
|
247 |
UseFtpUsers no |
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
# Allow FXP transfers for authenticated users. |
|
252 |
|
|
253 |
AllowUserFXP no |
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
# Allow anonymous FXP for anonymous and non-anonymous users. |
|
258 |
|
|
259 |
AllowAnonymousFXP no |
|
260 |
|
|
261 |
|
|
262 |
|
|
263 |
# Users can't delete/write files beginning with a dot ('.') |
|
264 |
# even if they own them. If TrustedGID is enabled, this group |
|
265 |
# will have access to dot-files, though. |
|
266 |
|
|
267 |
ProhibitDotFilesWrite no |
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
# Prohibit *reading* of files beginning with a dot (.history, .ssh...) |
|
272 |
|
|
273 |
ProhibitDotFilesRead no |
|
274 |
|
|
275 |
|
|
276 |
|
|
277 |
# Never overwrite files. When a file whoose name already exist is uploaded, |
|
278 |
# it get automatically renamed to file.1, file.2, file.3, ... |
|
279 |
|
|
280 |
AutoRename no |
|
281 |
|
|
282 |
|
|
283 |
|
|
284 |
# Disallow anonymous users to upload new files (no = upload is allowed) |
|
285 |
|
|
286 |
AnonymousCantUpload yes |
|
287 |
|
|
288 |
|
|
289 |
|
|
290 |
# Only connections to this specific IP address are allowed to be |
|
291 |
# non-anonymous. You can use this directive to open several public IPs for |
|
292 |
# anonymous FTP, and keep a private firewalled IP for remote administration. |
|
293 |
# You can also only allow a non-routable local IP (like 10.x.x.x) to |
|
294 |
# authenticate, and keep a public anon-only FTP server on another IP. |
|
295 |
|
|
296 |
#TrustedIP 10.1.1.1 |
|
297 |
|
|
298 |
|
|
299 |
|
|
300 |
# If you want to add the PID to every logged line, uncomment the following |
|
301 |
# line. |
|
302 |
|
|
303 |
#LogPID yes |
|
304 |
|
|
305 |
|
|
306 |
|
|
307 |
# Create an additional log file with transfers logged in a Apache-like format : |
|
308 |
# fw.c9x.org - jedi [13/Dec/1975:19:36:39] "GET /ftp/linux.tar.bz2" 200 21809338 |
|
309 |
# This log file can then be processed by www traffic analyzers. |
|
310 |
|
|
311 |
AltLog clf:/var/log/pureftpd.log |
|
312 |
|
|
313 |
|
|
314 |
|
|
315 |
# Create an additional log file with transfers logged in a format optimized |
|
316 |
# for statistic reports. |
|
317 |
|
|
318 |
# AltLog stats:/var/log/pureftpd.log |
|
319 |
|
|
320 |
|
|
321 |
|
|
322 |
# Create an additional log file with transfers logged in the standard W3C |
|
323 |
# format (compatible with most commercial log analyzers) |
|
324 |
|
|
325 |
# AltLog w3c:/var/log/pureftpd.log |
|
326 |
|
|
327 |
|
|
328 |
|
|
329 |
# Disallow the CHMOD command. Users can't change perms of their files. |
|
330 |
|
|
331 |
#NoChmod yes |
|
332 |
|
|
333 |
|
|
334 |
|
|
335 |
# Allow users to resume and upload files, but *NOT* to delete them. |
|
336 |
|
|
337 |
#KeepAllFiles yes |
|
338 |
|
|
339 |
|
|
340 |
|
|
341 |
# Automatically create home directories if they are missing |
|
342 |
|
|
343 |
#CreateHomeDir yes |
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
# Enable virtual quotas. The first number is the max number of files. |
|
348 |
# The second number is the max size of megabytes. |
|
349 |
# So 1000:10 limits every user to 1000 files and 10 Mb. |
|
350 |
|
|
351 |
#Quota 1000:10 |
|
352 |
|
|
353 |
|
|
354 |
|
|
355 |
# If your pure-ftpd has been compiled with standalone support, you can change |
|
356 |
# the location of the pid file. The default is /var/run/pure-ftpd.pid |
|
357 |
|
|
358 |
#PIDFile /var/run/pure-ftpd.pid |
|
359 |
|
|
360 |
|
|
361 |
|
|
362 |
# If your pure-ftpd has been compiled with pure-uploadscript support, |
|
363 |
# this will make pure-ftpd write info about new uploads to |
|
364 |
# /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and |
|
365 |
# spawn a script to handle the upload. |
|
366 |
|
|
367 |
#CallUploadScript yes |
|
368 |
|
|
369 |
|
|
370 |
|
|
371 |
# This option is useful with servers where anonymous upload is |
|
372 |
# allowed. As /var/ftp is in /var, it save some space and protect |
|
373 |
# the log files. When the partition is more that X percent full, |
|
374 |
# new uploads are disallowed. |
|
375 |
|
|
376 |
MaxDiskUsage 99 |
|
377 |
|
|
378 |
|
|
379 |
|
|
380 |
# Set to 'yes' if you don't want your users to rename files. |
|
381 |
|
|
382 |
#NoRename yes |
|
383 |
|
|
384 |
|
|
385 |
|
|
386 |
# Be 'customer proof' : workaround against common customer mistakes like |
|
387 |
# 'chmod 0 public_html', that are valid, but that could cause ignorant |
|
388 |
# customers to lock their files, and then keep your technical support busy |
|
389 |
# with silly issues. If you're sure all your users have some basic Unix |
|
390 |
# knowledge, this feature is useless. If you're a hosting service, enable it. |
|
391 |
|
|
392 |
CustomerProof yes |
|
393 |
|
|
394 |
|
|
395 |
|
|
396 |
# Per-user concurrency limits. It will only work if the FTP server has |
|
397 |
# been compiled with --with-peruserlimits (and this is the case on |
|
398 |
# most binary distributions) . |
|
399 |
# The format is : <max sessions per user>:<max anonymous sessions> |
|
400 |
# For instance, 3:20 means that the same authenticated user can have 3 active |
|
401 |
# sessions max. And there are 20 anonymous sessions max. |
|
402 |
|
|
403 |
# PerUserLimits 3:20 |
|
404 |
|
|
405 |
|
|
406 |
|
|
407 |
# When a file is uploaded and there is already a previous version of the file |
|
408 |
# with the same name, the old file will neither get removed nor truncated. |
|
409 |
# Upload will take place in a temporary file and once the upload is complete, |
|
410 |
# the switch to the new version will be atomic. For instance, when a large PHP |
|
411 |
# script is being uploaded, the web server will still serve the old version and |
|
412 |
# immediatly switch to the new one as soon as the full file will have been |
|
413 |
# transfered. This option is incompatible with virtual quotas. |
|
414 |
|
|
415 |
# NoTruncate yes |
|
416 |
|
|
417 |
|
|
418 |
|
|
419 |
# This option can accept three values : |
|
420 |
# 0 : disable SSL/TLS encryption layer (default). |
|
421 |
# 1 : accept both traditional and encrypted sessions. |
|
422 |
# 2 : refuse connections that don't use SSL/TLS security mechanisms, |
|
423 |
# including anonymous sessions. |
|
424 |
# Do _not_ uncomment this blindly. Be sure that : |
|
425 |
# 1) Your server has been compiled with SSL/TLS support (--with-tls), |
|
426 |
# 2) A valid certificate is in place, |
|
427 |
# 3) Only compatible clients will log in. |
|
428 |
|
|
429 |
# TLS 1 |
|
430 |
|
|
431 |
|
|
432 |
|
|
433 |
# Listen only to IPv4 addresses in standalone mode (ie. disable IPv6) |
|
434 |
# By default, both IPv4 and IPv6 are enabled. |
|
435 |
|
|
436 |
# IPV4Only yes |
|
437 |
|
|
438 |
|
|
439 |
|
|
440 |
# Listen only to IPv6 addresses in standalone mode (ie. disable IPv4) |
|
441 |
# By default, both IPv4 and IPv6 are enabled. |
|
442 |
|
|
443 |
# IPV6Only yes |
|
444 |
|
|
445 |
# UTF-8 support for file names (RFC 2640) |
|
446 |
# Define charset of the server filesystem and optionnally the default charset |
|
447 |
# for remote clients if they don't use UTF-8. |
|
448 |
# Works only if pure-ftpd has been compiled with --with-rfc2640 |
|
449 |
|
|
450 |
# FileSystemCharset big5 |
|
451 |
# ClientCharset big5 |
|
452 |
|