proftpd.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. MaxInstances 40
  10. User @l_nusr@
  11. Group @l_ngrp@
  12. Umask 022
  13. UseReverseDNS off
  14. MultilineRFC2228 on
  15. ShowSymlinks on
  16. AllowOverwrite on
  17. MaxLoginAttempts 2
  18. RequireValidShell yes
  19. LsDefaultOptions "-l"
  20. @l_pam@AuthPAM on
  21. @l_pam@AuthPAMConfig proftpd
  22. @l_pam@AuthPAMAuthoritative off
  23. #PersistentPassword off
  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. SystemLog @l_prefix@/var/proftpd/proftpd.system.log
  32. ScoreboardFile @l_prefix@/var/proftpd/proftpd.scoreboard
  33. <Global>
  34. ExtendedLog @l_prefix@/var/proftpd/proftpd.access.log WRITE,READ write
  35. ExtendedLog @l_prefix@/var/proftpd/proftpd.auth.log AUTH auth
  36. TransferLog @l_prefix@/var/proftpd/proftpd.xfer.log
  37. IdentLookups off
  38. DeferWelcome off
  39. DisplayGoAway @l_prefix@/etc/proftpd/proftpd.msg.goaway
  40. DisplayLogin @l_prefix@/etc/proftpd/proftpd.msg.login
  41. DisplayFirstChdir .message
  42. DisplayReadme README*
  43. WTmpLog off
  44. </Global>
  45. <Directory /*>
  46. AllowOverwrite on
  47. </Directory>
  48. # sample virtual Anonymous-FTP only server
  49. <VirtualHost 127.0.0.1>
  50. Port 21
  51. ServerIdent on "localhost FTP Server (ProFTPD) ready."
  52. ServerAdmin root@localhost
  53. MaxClients 20
  54. # allow anonymous logins only
  55. <Limit LOGIN>
  56. DenyAll
  57. </Limit>
  58. # Anonymous-FTP
  59. <Anonymous @l_prefix@/share/proftpd>
  60. User @l_nusr@
  61. Group @l_ngrp@
  62. UserAlias anonymous @l_nusr@
  63. UserAlias ftp @l_nusr@
  64. RootLogin off
  65. UseFtpUsers off
  66. MaxClients 10 "Sorry, max %m users allowed -- try again later, please."
  67. RequireValidShell off
  68. DisplayGoAway /.msg.goaway
  69. DisplayLogin /.msg.login
  70. <Limit LOGIN>
  71. AllowAll
  72. </Limit>
  73. <Limit WRITE>
  74. DenyAll
  75. </Limit>
  76. <Limit READ DIRS>
  77. IgnoreHidden on
  78. </Limit>
  79. # optionally allow uploads to a particular directory
  80. #<Directory incoming/*>
  81. # <Limit STOR>
  82. # AllowAll
  83. # </Limit>
  84. # <Limit WRITE DIRS READ>
  85. # DenyAll
  86. # </Limit>
  87. # <Limit CWD XCWD CDUP>
  88. # AllowAll
  89. # </Limit>
  90. #</Directory>
  91. </Anonymous>
  92. </VirtualHost>