manusoftar

Actual proftpd.conf

Oct 23rd, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. Include /etc/proftpd/modules.conf
  2.  
  3. UseIPv6 off
  4.  
  5. IdentLookups off
  6.  
  7. ServerName "Manufer.com.ar"
  8. ServerType standalone
  9. DeferWelcome off
  10.  
  11. MultilineRFC2228 on
  12. DefaultServer on
  13. ShowSymlinks on
  14.  
  15. TimeoutNoTransfer 600
  16. TimeoutStalled 600
  17. TimeoutIdle 1200
  18.  
  19. DebugLevel 10
  20.  
  21. #DisplayLogin welcome.msg
  22. DisplayChdir .message true
  23. ListOptions "-l"
  24.  
  25. DenyFilter \*.*/
  26.  
  27. Port 21
  28.  
  29. DefaultRoot /var/www
  30. DefaultRoot ~
  31.  
  32. # DynMasqRefresh 28800
  33.  
  34. MaxInstances 30
  35.  
  36. User ftpuser
  37. Group ftpgroup
  38.  
  39.  
  40. AccessGrantMsg "Acceso consedido!"
  41. ServerIdent on "FTP -> Manufer.com.ar"
  42.  
  43. Umask 0777 0777
  44. #Normally, we want files to be overwriteable.
  45. AllowOverwrite on
  46.  
  47. TransferLog /var/log/proftpd/xferlog
  48. SystemLog /var/log/proftpd/proftpd.log
  49.  
  50. AllowRetrieveRestart on
  51. AllowStoreRestart on
  52.  
  53. <IfModule mod_quotatab.c>
  54. QuotaEngine off
  55. </IfModule>
  56.  
  57. <IfModule mod_ratio.c>
  58. Ratios off
  59. </IfModule>
  60.  
  61. DelayEngine on
  62.  
  63. ControlsEngine off
  64. ControlsMaxClients 20
  65. ControlsLog /var/log/proftpd/controls.log
  66. ControlsInterval 5
  67. ControlsSocket /var/run/proftpd/proftpd.sock
  68.  
  69. AdminControlsEngine off
  70.  
  71. # The passwords in MySQL are encrypted using CRYPT
  72. SQLAuthTypes Backend MD5 SHA1 SHA256 SHA512 Crypt Plaintext
  73. SQLAuthenticate users* groups*
  74.  
  75. # used to connect to the database
  76. # databasename@host database_user user_password
  77. SQLConnectInfo ftp@localhost manusoftar 77503462
  78.  
  79. # Here we tell ProFTPd the names of the database columns in the "usertable"
  80. # we want it to interact with. Match the names with those in the db
  81. SQLUserInfo ftpuser userid passwd uid gid homedir shell
  82.  
  83. # Here we tell ProFTPd the names of the database columns in the "grouptable"
  84. # we want it to interact with. Again the names match with those in the db
  85. SQLGroupInfo ftpgroup groupname gid members
  86.  
  87. # set min UID and GID - otherwise these are 999 each
  88. SQLMinID 500
  89.  
  90. # create a user's home directory on demand if it doesn't exist
  91. #SQLHomedirOnDemand on
  92. CreateHome on
  93. # Update count every time user logs in
  94. SQLLog PASS updatecount
  95. SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser
  96.  
  97. # Update modified everytime user uploads or deletes a file
  98. SQLLog STOR,DELE modified
  99. SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser
  100.  
  101. RootLogin on
  102. RequireValidShell off
  103.  
  104. <Global>
  105. AllowOverwrite on
  106. <Limit PASV MKD STOR DELE XMKD RNRF RNTO RMD XRMD MFMT>
  107. AllowAll
  108. </Limit>
  109. </Global>
Advertisement
Add Comment
Please, Sign In to add comment