OVH Cloud OVH Cloud

PROFTPD

4 réponses
Avatar
Pierre
bonjour, j ai un un petit soucis j ai parametre proftpd via linterface
graphique gproftpd, j arrive bien depuis une autre machine a me connecter
mais au lieu d aller vers le dossier /var/ftp/ qui est vide il montre le
dossier home pourtant voici le fichier de config.... (merci de votre
aide)

ServerType standalone
DefaultServer on
Umask 022
ServerName "0.0.0.0"
ServerIdent on "mon FTP SERVEUR"
Bind "0.0.0.0"
ServerAdmin contact@XXX.com
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49143 65535
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 30
TransferRate STOR 41
TransferRate STOU 41
TransferRate APPE 41
SystemLog /var/log/secure
#gp_random_username_length 6
#gp_random_password_length 8
#gp_randomize_case lower
#gp_useradd_root_path /var/ftp
#gp_useradd_upload_path /upload
#gp_html_path /var/www/ftp.html
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<Limit LOGIN>
AllowUser yoyo
AllowUser formation
DenyALL
</Limit>

<Anonymous /var/ftp>
User yoyo
Group yoyo
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP
XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD
XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /var/ftp/upload/*>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST MDTM SIZE SITE STAT APPE RETR STOR STOU
MKD XMKD CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY DELE SITE_CHMOD SITE_CHGRP RMD XRMD RNFR RNTO>
DenyAll
</Limit>
</Directory>
</Anonymous>

<Anonymous /var/ftp>
User formation
Group formation
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP
XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD
XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /var/ftp/upload/*>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST STOR STOU APPE RETR MKD XMKD >
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY RNFR RNTO DELE RMD XRMD SITE_CHMOD SITE_CHGRP
STAT MDTM PWD XPWD SIZE CWD XCWD CDUP XCUP SITE >
DenyAll
</Limit>
</Directory>
</Anonymous>

4 réponses

Avatar
julien
bonjour, j ai un un petit soucis j ai parametre proftpd via linterface
graphique gproftpd, j arrive bien depuis une autre machine a me connecter
mais au lieu d aller vers le dossier /var/ftp/ qui est vide il montre le
dossier home pourtant voici le fichier de config.... (merci de votre
aide)
...

<Directory /var/ftp/upload/*>
ça ne serait pas plutôt

<Directory upload/*> ?
...

Avatar
Doug713705
<posté comme article et comme courrier>

Le mardi 4 juillet 2006 00:19, Pierre s'est exprimé de la sorte sur
fr.comp.os.linux.configuration :

bonjour, j ai un un petit soucis j ai parametre proftpd via linterface
graphique gproftpd, j arrive bien depuis une autre machine a me connecter
mais au lieu d aller vers le dossier /var/ftp/ qui est vide il montre le
dossier home pourtant voici le fichier de config.... (merci de votre
aide)

ajoute ceci à ton fichier de conf dans la rubrique <Global> (Si ça existe

encore car mon fichier de conf date de plusieurs années et qu'il n'est pas
vraiment similaire au tien) :

DefaultRoot /var/ftp/
UseFtpUsers off

Ca permettra à tous les utilisateurs déclarés sur le système de se retrouver
dans le "DefaultRoot" au login par ftp.

Si tu préfères avoir un fichier répertoriant les utilisateurs autorisés
met :

UseFtpUsers on

et édite le fichier qui va bien pour ça (voir le site de proftpd pour plus
de détails).

--
@+
Doug [Linux user #307925] - Slackware RuleZ ;-)
[Pourquoi t'es qui, qu'est ce que tu fais par où ?]
-- Pour me contacter enlever no-spam (2X) --

Avatar
Pierre
MAlheureusement ca toujours pas bon ...
j ai utilser GPROFTPD... et c est toujours pas bon
que faire docteur...
Avatar
Mihamina Rakotomandimby
On Wed, 05 Jul 2006 14:37:40 +0200, Pierre wrote:

MAlheureusement ca toujours pas bon ...
j ai utilser GPROFTPD... et c est toujours pas bon
que faire docteur...


Voir le fil de discussion intitulé "iptables comment cree son propre
fichier log" pour l'orthographe.

De plus, on aurait besoin de plus de détails.
Tu as fait quoi, donc, et tu obtiens quoi:
Tu ne mentionnes pas si tu te connecte en anonyme ou non.
De quel repertoire HOME parles-tu? celui de qui?
Moi je te conseille de partir d'un fichier de configuration le plus
simple, et de peauffiner ensuite:
Mets de coté le fichier que tu as actuellement.
Prends le fichier de configuration proposé
par défaut par Proftpd que tu
peux trouver ici par exemple
http://www.proftpd.org/docs/example-conf.html
C'est à partir de là que tu personnalises.