pure-ftpd.conf 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. ############################################################
  2. # #
  3. # Configuration file for pure-ftpd #
  4. # #
  5. ############################################################
  6. # If you want to run Pure-FTPd with this configuration
  7. # instead of command-line options, please run the
  8. # following command :
  9. #
  10. # ${exec_prefix}/sbin/sbin/pure-ftpd /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/pure-ftpd-1.0.49/release/etc/pure-ftpd.conf
  11. #
  12. # Online documentation:
  13. # https://www.pureftpd.org/project/pure-ftpd/doc
  14. # Restrict users to their home directory
  15. ChrootEveryone yes
  16. # If the previous option is set to "no", members of the following group
  17. # won't be restricted. Others will be. If you don't want chroot()ing anyone,
  18. # just comment out ChrootEveryone and TrustedGID.
  19. # TrustedGID 100
  20. # Turn on compatibility hacks for broken clients
  21. BrokenClientsCompatibility no
  22. # Maximum number of simultaneous users
  23. MaxClientsNumber 50
  24. # Run as a background process
  25. Daemonize yes
  26. # Maximum number of simultaneous clients with the same IP address
  27. MaxClientsPerIP 8
  28. # If you want to log all client commands, set this to "yes".
  29. # This directive can be specified twice to also log server responses.
  30. VerboseLog no
  31. # List dot-files even when the client doesn't send "-a".
  32. DisplayDotFiles yes
  33. # Disallow authenticated users - Act only as a public FTP server.
  34. AnonymousOnly no
  35. # Disallow anonymous connections. Only accept authenticated users.
  36. NoAnonymous no
  37. # Syslog facility (auth, authpriv, daemon, ftp, security, user, local*)
  38. # The default facility is "ftp". "none" disables logging.
  39. SyslogFacility ftp
  40. # Display fortune cookies
  41. # FortunesFile /usr/share/fortune/zippy
  42. # Don't resolve host names in log files. Recommended unless you trust
  43. # reverse host names, and don't care about DNS resolution being possibly slow.
  44. DontResolve yes
  45. # Maximum idle time in minutes (default = 15 minutes)
  46. MaxIdleTime 15
  47. # LDAP configuration file (see README.LDAP)
  48. # LDAPConfigFile /etc/pureftpd-ldap.conf
  49. # MySQL configuration file (see README.MySQL)
  50. # MySQLConfigFile /etc/pureftpd-mysql.conf
  51. # PostgreSQL configuration file (see README.PGSQL)
  52. # PGSQLConfigFile /etc/pureftpd-pgsql.conf
  53. # PureDB user database (see README.Virtual-Users)
  54. # PureDB /etc/pureftpd.pdb
  55. # Path to pure-authd socket (see README.Authentication-Modules)
  56. # ExtAuth /var/run/ftpd.sock
  57. # If you want to enable PAM authentication, uncomment the following line
  58. # PAMAuthentication yes
  59. # If you want simple Unix (/etc/passwd) authentication, uncomment this
  60. # UnixAuthentication yes
  61. # Please note that LDAPConfigFile, MySQLConfigFile, PAMAuthentication and
  62. # UnixAuthentication can be used specified once, but can be combined
  63. # together. For instance, if you use MySQLConfigFile, then UnixAuthentication,
  64. # the SQL server will be used first. If the SQL authentication fails because the
  65. # user wasn't found, a new attempt will be done using system authentication.
  66. # If the SQL authentication fails because the password didn't match, the
  67. # authentication chain stops here. Authentication methods are chained in
  68. # the order they are given.
  69. # 'ls' recursion limits. The first argument is the maximum number of
  70. # files to be displayed. The second one is the max subdirectories depth.
  71. LimitRecursion 10000 8
  72. # Are anonymous users allowed to create new directories?
  73. AnonymousCanCreateDirs no
  74. # If the system load is greater than the given value, anonymous users
  75. # aren't allowed to download.
  76. MaxLoad 4
  77. # Port range for passive connections - keep it as broad as possible.
  78. # PassivePortRange 30000 50000
  79. # Force an IP address in PASV/EPSV/SPSV replies. - for NAT.
  80. # Symbolic host names are also accepted for gateways with dynamic IP
  81. # addresses.
  82. # ForcePassiveIP 192.168.0.1
  83. # Upload/download ratio for anonymous users.
  84. # AnonymousRatio 1 10
  85. # Upload/download ratio for all users.
  86. # This directive supersedes the previous one.
  87. # UserRatio 1 10
  88. # Disallow downloads of files owned by the "ftp" system user;
  89. # files that were uploaded but not validated by a local admin.
  90. AntiWarez yes
  91. # IP address/port to listen to (default=all IP addresses, port 21).
  92. # Bind 127.0.0.1,21
  93. # Maximum bandwidth for anonymous users in KB/s
  94. # AnonymousBandwidth 8
  95. # Maximum bandwidth for *all* users (including anonymous) in KB/s
  96. # Use AnonymousBandwidth *or* UserBandwidth, not both.
  97. # UserBandwidth 8
  98. # File creation mask. <umask for files>:<umask for dirs> .
  99. # 177:077 if you feel paranoid.
  100. Umask 133:022
  101. # Minimum UID for an authenticated user to log in.
  102. # For example, a value of 100 prevents all users whose user id is below
  103. # 100 from logging in. If you want "root" to be able to log in, use 0.
  104. MinUID 100
  105. # Allow FXP transfers for authenticated users.
  106. AllowUserFXP no
  107. # Allow anonymous FXP for anonymous and non-anonymous users.
  108. AllowAnonymousFXP no
  109. # Users can't delete/write files starting with a dot ('.')
  110. # even if they own them. But if TrustedGID is enabled, that group
  111. # will exceptionally have access to dot-files.
  112. ProhibitDotFilesWrite no
  113. # Prohibit *reading* of files starting with a dot (.history, .ssh...)
  114. ProhibitDotFilesRead no
  115. # Don't overwrite files. When a file whose name already exist is uploaded,
  116. # it gets automatically renamed to file.1, file.2, file.3, ...
  117. AutoRename no
  118. # Prevent anonymous users from uploading new files (no = upload is allowed)
  119. AnonymousCantUpload no
  120. # Only connections to this specific IP address are allowed to be
  121. # non-anonymous. You can use this directive to open several public IPs for
  122. # anonymous FTP, and keep a private firewalled IP for remote administration.
  123. # You can also only allow a non-routable local IP (such as 10.x.x.x) for
  124. # authenticated users, and run a public anon-only FTP server on another IP.
  125. # TrustedIP 10.1.1.1
  126. # To add the PID to log entries, uncomment the following line.
  127. # LogPID yes
  128. # Create an additional log file with transfers logged in a Apache-like format :
  129. # fw.c9x.org - jedi [13/Apr/2017:19:36:39] "GET /ftp/linux.tar.bz2" 200 21809338
  130. # This log file can then be processed by common HTTP traffic analyzers.
  131. # AltLog clf:/var/log/pureftpd.log
  132. # Create an additional log file with transfers logged in a format optimized
  133. # for statistic reports.
  134. # AltLog stats:/var/log/pureftpd.log
  135. # Create an additional log file with transfers logged in the standard W3C
  136. # format (compatible with many HTTP log analyzers)
  137. # AltLog w3c:/var/log/pureftpd.log
  138. # Disallow the CHMOD command. Users cannot change perms of their own files.
  139. # NoChmod yes
  140. # Allow users to resume/upload files, but *NOT* to delete them.
  141. # KeepAllFiles yes
  142. # Automatically create home directories if they are missing
  143. # CreateHomeDir yes
  144. # Enable virtual quotas. The first value is the max number of files.
  145. # The second value is the maximum size, in megabytes.
  146. # So 1000:10 limits every user to 1000 files and 10 MB.
  147. # Quota 1000:10
  148. # If your pure-ftpd has been compiled with standalone support, you can change
  149. # the location of the pid file. The default is /var/run/pure-ftpd.pid
  150. # PIDFile /var/run/pure-ftpd.pid
  151. # If your pure-ftpd has been compiled with pure-uploadscript support,
  152. # this will make pure-ftpd write info about new uploads to
  153. # /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and
  154. # spawn a script to handle the upload.
  155. # Don't enable this option if you don't actually use pure-uploadscript.
  156. # CallUploadScript yes
  157. # This option is useful on servers where anonymous upload is
  158. # allowed. When the partition is more that percententage full,
  159. # new uploads are disallowed.
  160. MaxDiskUsage 99
  161. # Set to 'yes' to prevent users from renaming files.
  162. # NoRename yes
  163. # Be 'customer proof': forbids common customer mistakes such as
  164. # 'chmod 0 public_html', that are valid, but can cause customers to
  165. # unintentionally shoot themselves in the foot.
  166. CustomerProof yes
  167. # Per-user concurrency limits. Will only work if the FTP server has
  168. # been compiled with --with-peruserlimits.
  169. # Format is: <max sessions per user>:<max anonymous sessions>
  170. # For example, 3:20 means that an authenticated user can have up to 3 active
  171. # sessions, and that up to 20 anonymous sessions are allowed.
  172. # PerUserLimits 3:20
  173. # When a file is uploaded and there was already a previous version of the file
  174. # with the same name, the old file will neither get removed nor truncated.
  175. # The file will be stored under a temporary name and once the upload is
  176. # complete, it will be atomically renamed. For example, when a large PHP
  177. # script is being uploaded, the web server will keep serving the old version and
  178. # later switch to the new one as soon as the full file will have been
  179. # transferred. This option is incompatible with virtual quotas.
  180. # NoTruncate yes
  181. # This option accepts three values:
  182. # 0: disable SSL/TLS encryption layer (default).
  183. # 1: accept both cleartext and encrypted sessions.
  184. # 2: refuse connections that don't use the TLS security mechanism,
  185. # including anonymous sessions.
  186. # Do _not_ uncomment this blindly. Double check that:
  187. # 1) The server has been compiled with TLS support (--with-tls),
  188. # 2) A valid certificate is in place,
  189. # 3) Only compatible clients will log in.
  190. # TLS 1
  191. # Cipher suite for TLS sessions.
  192. # The default suite is secure and setting this property is usually
  193. # only required to *lower* the security to cope with legacy clients.
  194. # Prefix with -C: in order to require valid client certificates.
  195. # If -C: is used, make sure that clients' public keys are present on
  196. # the server.
  197. # TLSCipherSuite HIGH
  198. # Certificate file, for TLS
  199. # The certificate itself and the keys can be bundled into the same
  200. # file or split into two files.
  201. # CertFile is for a cert+key bundle, CertFileAndKey for separate files.
  202. # Use only one of these.
  203. # CertFile /etc/ssl/private/pure-ftpd.pem
  204. # CertFileAndKey "/etc/pure-ftpd.pem" "/etc/pure-ftpd.key"
  205. # Unix socket of the external certificate handler, for TLS
  206. # ExtCert /var/run/ftpd-certs.sock
  207. # Listen only to IPv4 addresses in standalone mode (ie. disable IPv6)
  208. # By default, both IPv4 and IPv6 are enabled.
  209. # IPV4Only yes
  210. # Listen only to IPv6 addresses in standalone mode (i.e. disable IPv4)
  211. # By default, both IPv4 and IPv6 are enabled.
  212. # IPV6Only yes