Return to pure-ftpd.conf.sample CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default |
1.1 ! misho 1: ! 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/local/sbin/pure-config.pl /usr/local/etc/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 no ! 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/pureftpd-ldap.conf ! 111: ! 112: ! 113: ! 114: # MySQL configuration file (see README.MySQL) ! 115: ! 116: # MySQLConfigFile /etc/pureftpd-mysql.conf ! 117: ! 118: ! 119: # Postgres configuration file (see README.PGSQL) ! 120: ! 121: # PGSQLConfigFile /etc/pureftpd-pgsql.conf ! 122: ! 123: ! 124: # PureDB user database (see README.Virtual-Users) ! 125: ! 126: # PureDB /etc/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 10000 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 100 ! 241: ! 242: ! 243: ! 244: # Allow FXP transfers for authenticated users. ! 245: ! 246: AllowUserFXP no ! 247: ! 248: ! 249: ! 250: # Allow anonymous FXP for anonymous and non-anonymous users. ! 251: ! 252: AllowAnonymousFXP no ! 253: ! 254: ! 255: ! 256: # Users can't delete/write files beginning with a dot ('.') ! 257: # even if they own them. If TrustedGID is enabled, this group ! 258: # will have access to dot-files, though. ! 259: ! 260: ProhibitDotFilesWrite no ! 261: ! 262: ! 263: ! 264: # Prohibit *reading* of files beginning with a dot (.history, .ssh...) ! 265: ! 266: ProhibitDotFilesRead no ! 267: ! 268: ! 269: ! 270: # Never overwrite files. When a file whoose name already exist is uploaded, ! 271: # it get automatically renamed to file.1, file.2, file.3, ... ! 272: ! 273: AutoRename no ! 274: ! 275: ! 276: ! 277: # Disallow anonymous users to upload new files (no = upload is allowed) ! 278: ! 279: AnonymousCantUpload no ! 280: ! 281: ! 282: ! 283: # Only connections to this specific IP address are allowed to be ! 284: # non-anonymous. You can use this directive to open several public IPs for ! 285: # anonymous FTP, and keep a private firewalled IP for remote administration. ! 286: # You can also only allow a non-routable local IP (like 10.x.x.x) to ! 287: # authenticate, and keep a public anon-only FTP server on another IP. ! 288: ! 289: #TrustedIP 10.1.1.1 ! 290: ! 291: ! 292: ! 293: # If you want to add the PID to every logged line, uncomment the following ! 294: # line. ! 295: ! 296: #LogPID yes ! 297: ! 298: ! 299: ! 300: # Create an additional log file with transfers logged in a Apache-like format : ! 301: # fw.c9x.org - jedi [13/Dec/1975:19:36:39] "GET /ftp/linux.tar.bz2" 200 21809338 ! 302: # This log file can then be processed by www traffic analyzers. ! 303: ! 304: # AltLog clf:/var/log/pureftpd.log ! 305: ! 306: ! 307: ! 308: # Create an additional log file with transfers logged in a format optimized ! 309: # for statistic reports. ! 310: ! 311: # AltLog stats:/var/log/pureftpd.log ! 312: ! 313: ! 314: ! 315: # Create an additional log file with transfers logged in the standard W3C ! 316: # format (compatible with most commercial log analyzers) ! 317: ! 318: # AltLog w3c:/var/log/pureftpd.log ! 319: ! 320: ! 321: ! 322: # Disallow the CHMOD command. Users can't change perms of their files. ! 323: ! 324: #NoChmod yes ! 325: ! 326: ! 327: ! 328: # Allow users to resume and upload files, but *NOT* to delete them. ! 329: ! 330: #KeepAllFiles yes ! 331: ! 332: ! 333: ! 334: # Automatically create home directories if they are missing ! 335: ! 336: #CreateHomeDir yes ! 337: ! 338: ! 339: ! 340: # Enable virtual quotas. The first number is the max number of files. ! 341: # The second number is the max size of megabytes. ! 342: # So 1000:10 limits every user to 1000 files and 10 Mb. ! 343: ! 344: #Quota 1000:10 ! 345: ! 346: ! 347: ! 348: # If your pure-ftpd has been compiled with standalone support, you can change ! 349: # the location of the pid file. The default is /var/run/pure-ftpd.pid ! 350: ! 351: #PIDFile /var/run/pure-ftpd.pid ! 352: ! 353: ! 354: ! 355: # If your pure-ftpd has been compiled with pure-uploadscript support, ! 356: # this will make pure-ftpd write info about new uploads to ! 357: # /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and ! 358: # spawn a script to handle the upload. ! 359: ! 360: #CallUploadScript yes ! 361: ! 362: ! 363: ! 364: # This option is useful with servers where anonymous upload is ! 365: # allowed. As /var/ftp is in /var, it save some space and protect ! 366: # the log files. When the partition is more that X percent full, ! 367: # new uploads are disallowed. ! 368: ! 369: MaxDiskUsage 99 ! 370: ! 371: ! 372: ! 373: # Set to 'yes' if you don't want your users to rename files. ! 374: ! 375: #NoRename yes ! 376: ! 377: ! 378: ! 379: # Be 'customer proof' : workaround against common customer mistakes like ! 380: # 'chmod 0 public_html', that are valid, but that could cause ignorant ! 381: # customers to lock their files, and then keep your technical support busy ! 382: # with silly issues. If you're sure all your users have some basic Unix ! 383: # knowledge, this feature is useless. If you're a hosting service, enable it. ! 384: ! 385: CustomerProof yes ! 386: ! 387: ! 388: ! 389: # Per-user concurrency limits. It will only work if the FTP server has ! 390: # been compiled with --with-peruserlimits (and this is the case on ! 391: # most binary distributions) . ! 392: # The format is : <max sessions per user>:<max anonymous sessions> ! 393: # For instance, 3:20 means that the same authenticated user can have 3 active ! 394: # sessions max. And there are 20 anonymous sessions max. ! 395: ! 396: # PerUserLimits 3:20 ! 397: ! 398: ! 399: ! 400: # When a file is uploaded and there is already a previous version of the file ! 401: # with the same name, the old file will neither get removed nor truncated. ! 402: # Upload will take place in a temporary file and once the upload is complete, ! 403: # the switch to the new version will be atomic. For instance, when a large PHP ! 404: # script is being uploaded, the web server will still serve the old version and ! 405: # immediatly switch to the new one as soon as the full file will have been ! 406: # transfered. This option is incompatible with virtual quotas. ! 407: ! 408: # NoTruncate yes ! 409: ! 410: ! 411: ! 412: # This option can accept three values : ! 413: # 0 : disable SSL/TLS encryption layer (default). ! 414: # 1 : accept both traditional and encrypted sessions. ! 415: # 2 : refuse connections that don't use SSL/TLS security mechanisms, ! 416: # including anonymous sessions. ! 417: # Do _not_ uncomment this blindly. Be sure that : ! 418: # 1) Your server has been compiled with SSL/TLS support (--with-tls), ! 419: # 2) A valid certificate is in place, ! 420: # 3) Only compatible clients will log in. ! 421: ! 422: # TLS 1 ! 423: ! 424: ! 425: ! 426: # Listen only to IPv4 addresses in standalone mode (ie. disable IPv6) ! 427: # By default, both IPv4 and IPv6 are enabled. ! 428: ! 429: # IPV4Only yes ! 430: ! 431: ! 432: ! 433: # Listen only to IPv6 addresses in standalone mode (ie. disable IPv4) ! 434: # By default, both IPv4 and IPv6 are enabled. ! 435: ! 436: # IPV6Only yes ! 437: ! 438: # UTF-8 support for file names (RFC 2640) ! 439: # Define charset of the server filesystem and optionnally the default charset ! 440: # for remote clients if they don't use UTF-8. ! 441: # Works only if pure-ftpd has been compiled with --with-rfc2640 ! 442: ! 443: # FileSystemCharset big5 ! 444: # ClientCharset big5