manusoftar

last proftpd.conf

Oct 23rd, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 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 manusoftar
  37. Group manusoftar
  38.  
  39.  
  40. AccessGrantMsg "Acceso consedido!"
  41. ServerIdent on "FTP -> Manufer.com.ar"
  42.  
  43. Umask 002 002
  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. <IfModule mod_cap.c>
  62. CapabilitiesEngine off
  63. </IfModule>
  64.  
  65. DelayEngine on
  66.  
  67. ControlsEngine off
  68. ControlsMaxClients 20
  69. ControlsLog /var/log/proftpd/controls.log
  70. ControlsInterval 5
  71. ControlsSocket /var/run/proftpd/proftpd.sock
  72.  
  73. AdminControlsEngine off
  74.  
  75. # The passwords in MySQL are encrypted using CRYPT
  76. SQLAuthTypes Backend MD5 SHA1 SHA256 SHA512 Crypt Plaintext
  77. SQLAuthenticate users* groups*
  78.  
  79. # used to connect to the database
  80. # databasename@host database_user user_password
  81. SQLConnectInfo ftp@localhost manusoftar 77503462
  82.  
  83. # Here we tell ProFTPd the names of the database columns in the "usertable"
  84. # we want it to interact with. Match the names with those in the db
  85. SQLUserInfo ftpuser userid passwd uid gid homedir shell
  86.  
  87. # Here we tell ProFTPd the names of the database columns in the "grouptable"
  88. # we want it to interact with. Again the names match with those in the db
  89. SQLGroupInfo ftpgroup groupname gid members
  90.  
  91. # set min UID and GID - otherwise these are 999 each
  92. SQLMinID 500
  93.  
  94. # create a user's home directory on demand if it doesn't exist
  95. #SQLHomedirOnDemand on
  96. CreateHome on
  97. # Update count every time user logs in
  98. SQLLog PASS updatecount
  99. SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser
  100.  
  101. # Update modified everytime user uploads or deletes a file
  102. SQLLog STOR,DELE modified
  103. SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser
  104.  
  105. RootLogin on
  106. RequireValidShell off
  107.  
  108. <Global>
  109. AllowOverwrite on
  110. <Limit PASV MKD STOR DELE XMKD RNRF RNTO RMD XRMD MFMT>
  111. AllowAll
  112. </Limit>
  113. </Global>
Advertisement
Add Comment
Please, Sign In to add comment