proftpd.conf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ##
  2. ## proftpd.conf -- ProFTPD Configuration
  3. ## Copyright (c) 2001 Ralf S. Engelschall <rse@engelschall.com>
  4. ##
  5. ServerType standalone
  6. DefaultServer off
  7. SocketBindTight on
  8. Port none
  9. AuthPAM on
  10. AuthPAMConfig proftpd
  11. AuthPAMAuthoritative off
  12. #PersistentPassword off
  13. MaxInstances 40
  14. User @l_npusr@
  15. Group @l_npgrp@
  16. Umask 022
  17. UseReverseDNS off
  18. MultilineRFC2228 on
  19. ShowSymlinks on
  20. AllowOverwrite on
  21. MaxLoginAttempts 2
  22. RequireValidShell yes
  23. LsDefaultOptions "-l"
  24. TimeoutLogin 120
  25. TimeoutNoTransfer 600
  26. TimeoutStalled 600
  27. TimeoutIdle 1200
  28. LogFormat default "%h %l %u %t \"%r\" %s %b"
  29. LogFormat auth "%v [%P] %h %t \"%r\" %s"
  30. LogFormat write "%h %l %u %t \"%r\" %s %b"
  31. ExtendedLog @l_prefix@/var/proftpd/proftpd.access.log WRITE,READ write
  32. ExtendedLog @l_prefix@/var/proftpd/proftpd.auth.log AUTH auth
  33. TransferLog @l_prefix@/var/proftpd/proftpd.xfer.log
  34. SystemLog @l_prefix@/var/proftpd/proftpd.system.log
  35. <Global>
  36. IdentLookups off
  37. DeferWelcome off
  38. DisplayGoAway @l_prefix@/etc/proftpd/proftpd.msg.goaway
  39. DisplayLogin @l_prefix@/etc/proftpd/proftpd.msg.login
  40. DisplayFirstChdir .message
  41. DisplayReadme README*
  42. </Global>
  43. <Directory /*>
  44. AllowOverwrite on
  45. </Directory>
  46. # sample virtual Anonymous-FTP only server
  47. <VirtualHost 127.0.0.1>
  48. Port 21
  49. ServerIdent on "localhost FTP Server (ProFTPD) ready."
  50. ServerAdmin root@localhost
  51. MaxClients 20
  52. # optionally allow anonymous logins only
  53. #<Limit LOGIN>
  54. # DenyAll
  55. #</Limit>
  56. # Anonymous-FTP
  57. <Anonymous @l_prefix@/share/proftpd>
  58. User @l_npusr@
  59. Group @l_npgrp@
  60. UserAlias anonymous @l_npusr@
  61. UserAlias ftp @l_npusr@
  62. UseFtpUsers off
  63. MaxClients 10 "Sorry, max %m users allowed -- try again later, please."
  64. RequireValidShell off
  65. DisplayGoAway /.msg.goaway
  66. DisplayLogin /.msg.login
  67. <Limit LOGIN>
  68. AllowAll
  69. </Limit>
  70. <Limit WRITE>
  71. DenyAll
  72. </Limit>
  73. <Limit READ DIRS>
  74. IgnoreHidden on
  75. </Limit>
  76. # optionally allow uploads to a particular directory
  77. #<Directory incoming/*>
  78. # <Limit STOR>
  79. # AllowAll
  80. # </Limit>
  81. # <Limit WRITE DIRS READ>
  82. # DenyAll
  83. # </Limit>
  84. # <Limit CWD XCWD CDUP>
  85. # AllowAll
  86. # </Limit>
  87. #</Directory>
  88. </Anonymous>
  89. </VirtualHost>