proftpd.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ##
  2. ## proftpd.conf -- ProFTPD Configuration
  3. ##
  4. ServerType standalone
  5. DefaultServer off
  6. SocketBindTight on
  7. Port none
  8. MaxInstances 40
  9. User @l_nusr@
  10. Group @l_ngrp@
  11. Umask 022 022
  12. UseReverseDNS off
  13. MultilineRFC2228 on
  14. ShowSymlinks on
  15. AllowOverwrite on
  16. MaxLoginAttempts 2
  17. RequireValidShell yes
  18. ListOptions "-l"
  19. @l_pam@AuthPAM on
  20. @l_pam@AuthPAMConfig proftpd
  21. @l_pam@AuthPAMAuthoritative off
  22. #PersistentPasswd off
  23. TimeoutLogin 120
  24. TimeoutNoTransfer 600
  25. TimeoutStalled 600
  26. TimeoutIdle 1200
  27. LogFormat default "%h %l %u %t \"%r\" %s %b"
  28. LogFormat auth "%v [%P] %h %t \"%r\" %s"
  29. LogFormat write "%h %l %u %t \"%r\" %s %b"
  30. SystemLog @l_prefix@/var/proftpd/proftpd.system.log
  31. ScoreboardFile @l_prefix@/var/proftpd/proftpd.scoreboard
  32. <Global>
  33. ExtendedLog @l_prefix@/var/proftpd/proftpd.access.log WRITE,READ write
  34. ExtendedLog @l_prefix@/var/proftpd/proftpd.auth.log AUTH auth
  35. TransferLog @l_prefix@/var/proftpd/proftpd.xfer.log
  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. WTmpLog off
  43. </Global>
  44. <Directory /*>
  45. AllowOverwrite on
  46. </Directory>
  47. # sample virtual Anonymous-FTP only server
  48. <VirtualHost 127.0.0.1>
  49. Port 21
  50. PassivePorts 49152 65535
  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>