Advertisement
Guest User

Untitled

a guest
Jul 26th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. ServerName "FTP server"
  2. ServerType standalone
  3. DefaultServer on
  4. DeferWelcome off
  5. UseIPv6 on
  6. #IdentLookups off
  7. MultilineRFC2228 on
  8. ShowSymlinks on
  9.  
  10. #ModulePath /usr/local/galaxy/downloads/proftpd-1.3.5rc3/modules/
  11.  
  12. #LoadModule mod_sql.c
  13. #LoadModule mod_sql_postgres.c
  14. #LoadModule mod_sql_passwd.c
  15.  
  16. #<IfModule mod_sql.c>
  17. SQLBackend postgres
  18. SQLEngine on
  19. SQLAuthenticate users
  20. SQLAuthTypes SHA1 SHA256 pbkdf2
  21. SQLPasswordPBKDF2 SHA256 1000 24
  22. #SQLPasswordSaltFile /path/to/file
  23. SQLConnectInfo galaxydb@localhost:5432 galaxy tigress
  24. SQLUserInfo custom:/LookupGalaxyUser
  25. #SQLNamedQuery LookupGalaxyUser SELECT "email,password,'galaxy','galaxy','/home/jibesh/uploads/%U','/bin/bash' FROM galaxy_user WHERE email='%U'"
  26.  
  27. SQLPasswordUserSalt sql:/GetUserSalt
  28.  
  29.  
  30. SQLNamedQuery LookupGalaxyUser SELECT "email, (CASE WHEN substring(password from 1 for 6) = 'PBDKF2' THEN substring(password from 38 for 69) ELSE password END) AS password2,'jibesh','jibesh','/home/jibesh/uploads/%U','/bin/bash' FROM galaxy_user WHERE email='%U'"
  31.  
  32. SQLNamedQuery GetUserSalt SELECT "(CASE WHEN SUBSTRING (password from 1 for 6) = 'PBDKF2' THEN SUBSTRING (password from 21 for 36) END) AS salt FROM galaxy_user WHERE email='%U'"
  33.  
  34. SQLLog PASS LookupGalaxyUser
  35. SQLLogFile /foo/var/proftpd-sql
  36.  
  37. #</IfModule>
  38.  
  39. SQLDefaultGID 1000
  40. SQLDefaultUID 1000
  41.  
  42. TimeoutNoTransfer 600
  43. TimeoutStalled 600
  44. TimeoutIdle 1200
  45.  
  46. DisplayLogin welcome.msg
  47. DisplayChdir .message true
  48. ListOptions "-l"
  49.  
  50. DenyFilter \*.*/
  51.  
  52. # Use this to jail all users in their homes
  53. DefaultRoot ~
  54. CreateHome on dirmode 700
  55. AllowOverwrite on
  56. AllowStoreRestart on
  57. SQLPasswordEngine on
  58. SQLPasswordEncoding hex
  59. PassivePorts 30000 40000
  60.  
  61.  
  62.  
  63. # Port 21 is the standard FTP port.
  64. Port 21
  65.  
  66. # Don't use IPv6 support by default.
  67. # Umask 022 is a good standard umask to prevent new dirs and files
  68. # from being group and world writable.
  69. Umask 077
  70.  
  71. # To prevent DoS attacks, set the maximum number of child processes
  72. # to 30. If you need to allow more than 30 concurrent connections
  73. # at once, simply increase this value. Note that this ONLY works
  74. # in standalone mode, in inetd mode you should use an inetd server
  75. # that allows you to limit maximum number of processes per service
  76. # (such as xinetd).
  77. MaxInstances 30
  78.  
  79. # Set the user and group under which the server will run.
  80. User jibesh
  81. Group jibesh
  82.  
  83. # To cause every FTP user to be "jailed" (chrooted) into their home
  84. # directory, uncomment this line.
  85. #DefaultRoot ~
  86.  
  87. # Normally, we want files to be overwriteable.
  88. AllowOverwrite on
  89.  
  90. AuthOrder mod_sql.c
  91.  
  92.  
  93. # Bar use of SITE CHMOD by default
  94. #<Limit SITE_CHMOD>
  95. # DenyAll
  96. #</Limit>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement