Je n'arrive pas à configurer proftpd comme je le souhaite.

Je n'arrive pas à configurer proftpd comme je le souhaite. - Logiciels - Linux et OS Alternatifs

Marsh Posté le 28-05-2009 à 15:43:47    

Bonjour amis linuxiens.
 
Voilà, dans ma grande folie, j'ai décidé de monter mon serveur Web mais je n'arrive pas à gérer les utilisiteurs FTP comme je le voudrais ... voici donc ce que je tente de faire :
 
- des utilisateurs principaux, appelons le domaine1 pour l'exemple, ayant accès à leur arborescence /home/domaine1/
- des utilisateurs secondaires, appelons le domaine1_user1, ayant uniquement accès à des sous dossiers du domaine1 ... par exemple /home/domaine1/www/user1/
 
J'ai essayé de jouer avec la directive DefaultRoot comme suit :
 

Code :
  1. DefaultRoot   ~ !domaine1_user1
  2. DefaultRoot   /home/domaine1/www/user1/ domaine1_user1


 
Mais ca ne marche pas ... Impossible de trouver le dossier quand j'essaie de me connecter avec domaine1_user1 ...
 
J'ai aussi essayé de passer par des directives Directory ... mais le FTP s'entête à démarrer dans /home/domaine1_user1 ...
 
Je vous montre mon proftpd.conf actuel pour que vous puissiez commenter et me dire ce qui bloque :
 

Code :
  1. #
  2. # /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
  3. # To really apply changes reload proftpd after modifications.
  4. #
  5. # Includes DSO modules
  6. Include /etc/proftpd/modules.conf
  7. # Set off to disable IPv6 support which is annoying on IPv4 only boxes.
  8. UseIPv6    on
  9. # If set on you can experience a longer connection delay in many cases.
  10. IdentLookups   off
  11. ServerName   "toTOW's home"
  12. ServerType   standalone
  13. DeferWelcome   on
  14. MultilineRFC2228  on
  15. DefaultServer   on
  16. ShowSymlinks   off
  17. TimeoutNoTransfer  600
  18. TimeoutStalled   600
  19. TimeoutIdle   1200
  20. DisplayLogin     welcome.msg
  21. DisplayChdir       .message true
  22. ListOptions     "-l"
  23. DenyFilter   \*.*/
  24. # Use this to jail all users in their homes
  25. # DefaultRoot   ~
  26. # Users require a valid shell listed in /etc/shells to login.
  27. # Use this directive to release that constrain.
  28. # RequireValidShell  off
  29. # Port 21 is the standard FTP port.
  30. Port    21
  31. # In some cases you have to specify passive ports range to by-pass
  32. # firewall limitations. Ephemeral ports can be used for that, but
  33. # feel free to use a more narrow range.
  34. # PassivePorts      49152 65534
  35. # If your host was NATted, this option is useful in order to
  36. # allow passive tranfers to work. You have to use your public
  37. # address and opening the passive ports used on your firewall as well.
  38. # MasqueradeAddress  1.2.3.4
  39. # This is useful for masquerading address with dynamic IPs:
  40. # refresh any configured MasqueradeAddress directives every 8 hours
  41. <IfModule mod_dynmasq.c>
  42. # DynMasqRefresh 28800
  43. </IfModule>
  44. # To prevent DoS attacks, set the maximum number of child processes
  45. # to 30.  If you need to allow more than 30 concurrent connections
  46. # at once, simply increase this value.  Note that this ONLY works
  47. # in standalone mode, in inetd mode you should use an inetd server
  48. # that allows you to limit maximum number of processes per service
  49. # (such as xinetd)
  50. MaxInstances   30
  51. # Set the user and group that the server normally runs at.
  52. User    proftpd
  53. Group    nogroup
  54. # Umask 022 is a good standard umask to prevent new files and dirs
  55. # (second parm) from being group and world writable.
  56. Umask    022  022
  57. # Normally, we want files to be overwriteable.
  58. AllowOverwrite   on
  59. # Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
  60. # PersistentPasswd  off
  61. # This is required to use both PAM-based authentication and local passwords
  62. # AuthOrder   mod_auth_pam.c* mod_auth_unix.c
  63. # Be warned: use of this directive impacts CPU average load!
  64. # Uncomment this if you like to see progress and transfer rate with ftpwho
  65. # in downloads. That is not needed for uploads rates.
  66. #
  67. # UseSendFile   off
  68. TransferLog /var/log/proftpd/xferlog
  69. SystemLog   /var/log/proftpd/proftpd.log
  70. <IfModule mod_quotatab.c>
  71. QuotaEngine off
  72. </IfModule>
  73. <IfModule mod_ratio.c>
  74. Ratios off
  75. </IfModule>
  76. # Delay engine reduces impact of the so-called Timing Attack described in
  77. # http://security.lss.hr/index.php?p [...] 2004-10-02
  78. # It is on by default.
  79. <IfModule mod_delay.c>
  80. DelayEngine on
  81. </IfModule>
  82. <IfModule mod_ctrls.c>
  83. ControlsEngine  off
  84. ControlsMaxClients 2
  85. ControlsLog     /var/log/proftpd/controls.log
  86. ControlsInterval   5
  87. ControlsSocket  /var/run/proftpd/proftpd.sock
  88. </IfModule>
  89. <IfModule mod_ctrls_admin.c>
  90. AdminControlsEngine off
  91. </IfModule>
  92. #
  93. # Alternative authentication frameworks
  94. #
  95. #Include /etc/proftpd/ldap.conf
  96. #Include /etc/proftpd/sql.conf
  97. #
  98. # This is used for FTPS connections
  99. #
  100. #Include /etc/proftpd/tls.conf
  101. #Liste des utilisateurs authorises
  102. <Limit LOGIN>
  103. AllowUser domaine1
  104. AllowUser domaine1_user1
  105. AllowUser domaine1_user2
  106. DenyALL
  107. </Limit>
  108. #
  109. #Liste des dossier utilisateurs
  110. <Directory /home/domaine1/*>
  111. Umask 022 022
  112. AllowOverwrite on
  113. <Limit ALL>
  114.  Order Allow,Deny
  115.  AllowUser domaine1
  116.  DenyALL
  117. </Limit>
  118. </Directory>
  119. <Directory /home/domaine1/www/user1/*>
  120. Umask 022 022
  121. AllowOverwrite on
  122. <Limit ALL>
  123.  Order Allow,Deny
  124.  AllowUser domaine1
  125.  AllowUser domaine1_user1
  126.  DenyALL
  127. </Limit>
  128. </Directory>
  129. <Directory /home/domaine1/www/user2/*>
  130. Umask 022 022
  131. AllowOverwrite on
  132. <Limit ALL>
  133.  Order Allow,Deny
  134.  AllowUser domaine1
  135.  AllowUser domaine1_user2
  136.  DenyALL
  137. </Limit>
  138. </Directory>


 
Vous voyez ce que je tente de faire ? Une idée de comment le faire (ca commence à me faire tourner en bourrique) ?


---------------
[b] FAH-Addict, première source d'information francophone sur le projet Folding@Home.  
Reply

Marsh Posté le 28-05-2009 à 15:43:47   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed