Advertisement
Guest User

Untitled

a guest
Mar 12th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 KB | None | 0 0
  1. # This is the ProFTPD configuration file
  2. # $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $
  3.  
  4. ServerName "ProFTPD server"
  5. ServerIdent on "FTP Server ready."
  6. ServerAdmin root@localhost
  7. ServerType standalone
  8. #ServerType inetd
  9. DefaultServer on
  10. AccessGrantMsg "User %u logged in."
  11. #DisplayConnect /etc/ftpissue
  12. #DisplayLogin /etc/ftpmotd
  13. #DisplayGoAway /etc/ftpgoaway
  14. DeferWelcome off
  15.  
  16. # Use this to excude users from the chroot
  17. DefaultRoot ~ !adm
  18.  
  19. # Use pam to authenticate (default) and be authoritative
  20. AuthPAMConfig proftpd
  21. #AuthOrder mod_auth_pam.c* mod_auth_unix.c
  22.  
  23. # Do not perform ident nor DNS lookups (hangs when the port is filtered)
  24. IdentLookups off
  25. UseReverseDNS off
  26.  
  27. # Port 21 is the standard FTP port.
  28. Port 21
  29.  
  30. # Umask 022 is a good standard umask to prevent new dirs and files
  31. # from being group and world writable.
  32. Umask 022
  33.  
  34. # Default to show dot files in directory listings
  35. ListOptions "-a"
  36.  
  37. # See Configuration.html for these (here are the default values)
  38. #MultilineRFC2228 off
  39. #RootLogin off
  40. #LoginPasswordPrompt on
  41. #MaxLoginAttempts 3
  42. #AllowForeignAddress off # For FXP
  43.  
  44. # Allow to resume not only the downloads but the uploads too
  45. AllowRetrieveRestart on
  46. AllowStoreRestart on
  47.  
  48. # To prevent DoS attacks, set the maximum number of child processes
  49. # to 30. If you need to allow more than 30 concurrent connections
  50. # at once, simply increase this value. Note that this ONLY works
  51. # in standalone mode, in inetd mode you should use an inetd server
  52. # that allows you to limit maximum number of processes per service
  53. # (such as xinetd)
  54. MaxInstances 20
  55.  
  56. # Set the user and group that the server normally runs at.
  57. User nobody
  58. Group nobody
  59.  
  60. # Disable sendfile by default since it breaks displaying the download speeds in
  61. # ftptop and ftpwho
  62. UseSendfile no
  63.  
  64. # This is where we want to put the pid file
  65. ScoreboardFile /var/run/proftpd.score
  66.  
  67. # Normally, we want users to do a few things.
  68. <Global>
  69. AllowOverwrite yes
  70. <Limit ALL SITE_CHMOD>
  71. AllowAll
  72. </Limit>
  73. </Global>
  74.  
  75. # Define the log formats
  76. LogFormat default "%h %l %u %t \"%r\" %s %b"
  77. LogFormat auth "%v [%P] %h %t \"%r\" %s"
  78.  
  79. # TLS
  80. # Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
  81. #TLSEngine on
  82. #TLSRequired on
  83. #TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem
  84. #TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem
  85. #TLSCipherSuite ALL:!ADH:!DES
  86. #TLSOptions NoCertRequest
  87. #TLSVerifyClient off
  88. ##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
  89. #TLSLog /var/log/proftpd/tls.log
  90.  
  91. # SQL authentication Dynamic Shared Object (DSO) loading
  92. # See README.DSO and howto/DSO.html for more details.
  93. #<IfModule mod_dso.c>
  94. # LoadModule mod_sql.c
  95. # LoadModule mod_sql_mysql.c
  96. # LoadModule mod_sql_postgres.c
  97. #</IfModule>
  98.  
  99. # A basic anonymous configuration, with an upload directory.
  100. #<Anonymous ~ftp>
  101. # User ftp
  102. # Group ftp
  103. # AccessGrantMsg "Anonymous login ok, restrictions apply."
  104. #
  105. # # We want clients to be able to login with "anonymous" as well as "ftp"
  106. # UserAlias anonymous ftp
  107. #
  108. # # Limit the maximum number of anonymous logins
  109. # MaxClients 10 "Sorry, max %m users -- try again later"
  110. #
  111.  
  112. # Put the user into /pub right after login
  113. # #DefaultChdir /pub
  114. #
  115. # # We want 'welcome.msg' displayed at login, '.message' displayed in
  116. # # each newly chdired directory and tell users to read README* files.
  117. # DisplayLogin /welcome.msg
  118. # DisplayFirstChdir .message
  119. # DisplayReadme README*
  120. #
  121. # # Some more cosmetic and not vital stuff
  122. # DirFakeUser on ftp
  123. # DirFakeGroup on ftp
  124. #
  125. # # Limit WRITE everywhere in the anonymous chroot
  126. # <Limit WRITE SITE_CHMOD>
  127. # DenyAll
  128. # </Limit>
  129. #
  130. # # An upload directory that allows storing files but not retrieving
  131. # # or creating directories.
  132. # <Directory uploads/*>
  133. # AllowOverwrite no
  134. # <Limit READ>
  135. # DenyAll
  136. # </Limit>
  137. #
  138. # <Limit STOR>
  139. # AllowAll
  140. # </Limit>
  141. # </Directory>
  142. #
  143. # # Don't write anonymous accesses to the system wtmp file (good idea!)
  144. # WtmpLog off
  145. #
  146. # # Logging for the anonymous transfers
  147. # ExtendedLog /var/log/proftpd/access.log WRITE,READ default
  148. # ExtendedLog /var/log/proftpd/auth.log AUTH auth
  149. #
  150. #</Anonymous>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement