Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[proftpd] erreur critique, récuperation de fichiers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Tue Jun 02, 2009 2:52 pm    Post subject: [proftpd] erreur critique, récuperation de fichiers Reply with quote

Bonjour,

Voilà cette fois j'ai installé un serveur proftpd, mais il y a certaine chose que je ne comprend pas.

j'ai plusieurs utilisateurs. certain fonctionne en local, d'autre, non. et certain ne fonctionne pas du tout ^^ : impossibilité de récupérer les fichiers. il s'affiche bien mais quand on fais un glissé avec filezilla, il met ce message d'erreur :

Quote:
Statut : Connexion à 192.168.1.10:21...
Statut : Connexion établie, attente du message d'accueil...
Réponse : 220 ProFTPD 1.3.1 Server (ProFTP@home) [::ffff:192.168.1.10]
Commande : USER ecolevideo
Réponse : 331 Password required for ecolevideo
Commande : PASS ************
Réponse : 230 User ecolevideo logged in
Statut : Connecté
Statut : Démarrage du téléchargement de /index.html
Commande : CWD /
Réponse : 250 CWD command successful
Commande : TYPE A
Réponse : 200 Type set to A
Commande : PASV
Réponse : 227 Entering Passive Mode (192,168,1,10,210,251).
Commande : RETR index.html
Réponse : 550 index.html: No such file or directory
Erreur : Erreur critique


mon fichier proftpd.conf :

Quote:
ServerName "ProFTP@home"
ServerType standalone
#ServerType inetd
DefaultServer on
DefaultRoot ~
UseFtpUsers on

<Limit SITE_CHMOD>
DenyAll
</Limit>

Port 21

Umask 022

MaxInstances 30

User nobody
Group nogroup

#PersistentPasswd off

SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog

<Directory /*>
AllowOverwrite on
</Directory>

<Directory /var/www/htdocs>
<Limit WRITE>
AllowUser vlotho
DenyAll
</Limit>
<Limit READ>
AllowUser vlotho
DenyAll
</Limit>
</Directory>

<Directory /var/www/htdocs/ThereseFansub>
<Limit WRITE>
AllowUser vlotho
AllowUser kattre
DenyAll
</Limit>
<Limit READ>
AllowUser vlotho
AllowUser kattre
DenyAll
</Limit>
</Directory>

<Directory /home/ftp>
<Limit WRITE>
AllowUser vlotho
AllowUser kattre
AllowUser ftp
AllowUser georges
DenyAll
</Limit>
<Limit READ>
AllowUser vlotho
AllowUser kattre
AllowUser ftp
AllowUser georges
DenyAll
</Limit>
</Directory>

<Directory /home/opatik>
<Limit WRITE>
AllowUser vlotho
AllowUser opatik
DenyAll
</Limit>
<Limit READ>
AllowUser vlotho
AllowUser opatik
DenyAll
</Limit>
</Directory>

<Directory /var/www/htdocs/tekinfo>
<Limit WRITE>
AllowUser vlotho
Allowuser ecolevideo
DenyAll
</Limit>
<Limit READ>
AllowUser vlotho
AllowUser ecolevideo
DenyAll
</Limit>
</Directory>


Je ne vois rien d'anormal dans proftpd.log et xferlog
_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
Kazuya
Apprentice
Apprentice


Joined: 09 Jul 2006
Posts: 256

PostPosted: Tue Jun 02, 2009 6:57 pm    Post subject: Reply with quote

Hello,
À première vue, je dirais un problème de permission sur le fichier/dossier
Que te dis un "ls -l" sur le fichier en question ?
_________________
Hacker vaillant, rien d'impossible !!!
"Quand une vache boit de l'eau, cette eau devient du lait. Quand un serpent boit de l'eau, cette eau devient du poison."
Back to top
View user's profile Send private message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Tue Jun 02, 2009 7:22 pm    Post subject: Reply with quote

Quote:
root@SlackWare:~# ls -l /var/www/htdocs/tekinfo/
total 12
drwxrwxr-x 2 ecolevideo ftpusers 4096 2009-05-30 14:35 Scripts/
-rwxrwxr-x 1 ecolevideo ftpusers 1696 2009-05-30 15:43 index.html*
drwxrwxr-x 3 ecolevideo ftpusers 4096 2009-05-30 14:35 site/


et je me connecte avec le compte ecolevideo ...
_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
novazur
Guru
Guru


Joined: 19 Mar 2005
Posts: 461
Location: Martinique

PostPosted: Tue Jun 02, 2009 9:42 pm    Post subject: Reply with quote

et ls -d /var/www/htdocs/tekinfo/ ?
Back to top
View user's profile Send private message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Tue Jun 02, 2009 10:46 pm    Post subject: Reply with quote

Quote:
root@SlackWare:~# ls -d /var/www/htdocs/tekinfo/
/var/www/htdocs/tekinfo//

_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
novazur
Guru
Guru


Joined: 19 Mar 2005
Posts: 461
Location: Martinique

PostPosted: Wed Jun 03, 2009 1:31 am    Post subject: Reply with quote

grrrr
ls -ld /var/www/htdocs/tekinfo/ voyons !
:D
Back to top
View user's profile Send private message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Wed Jun 03, 2009 6:52 am    Post subject: Reply with quote

Quote:
root@SlackWare:~# ls -ld /var/www/htdocs/tekinfo/
drwxrwxr-x 4 ecolevideo ftpusers 4096 2009-05-30 14:35 /var/www/htdocs/tekinfo//


^^
je suis trop con je viens de m'apercevoir que mon serveur était en slackware et pas en gentoo :s, non parce que j'ai aussi une autre machine en gentoo, mais c'est pas le serveur. enfin bon il n'y a pas une grande différence je pense.
_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
novazur
Guru
Guru


Joined: 19 Mar 2005
Posts: 461
Location: Martinique

PostPosted: Wed Jun 03, 2009 2:03 pm    Post subject: Reply with quote

vlotho wrote:
enfin bon il n'y a pas une grande différence je pense.

Non, mais il suffit d'une petite nuance...
Back to top
View user's profile Send private message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Wed Jun 03, 2009 2:10 pm    Post subject: Reply with quote

les forum francophone slackware sont mort ^^ gentoo pouwa ^^
_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Fri Jun 05, 2009 6:16 pm    Post subject: Reply with quote

le problème n'est toujours pas donc n'hésiter pas à donner des idées ;)
_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
YetiBarBar
Guru
Guru


Joined: 23 Dec 2005
Posts: 532

PostPosted: Sun Jun 07, 2009 12:13 pm    Post subject: Reply with quote

Un problème de "jail"?

J'ai pas le temps de faire des tests.

Par défaut, avec
Code:
DefaultRoot ~
chacun de tes users est chrooté vers son /home/nom_user il me semble... (anonymous étant chrooté dans /home/ftp)

Si tu es kamikaze, une solution serait:
Code:
DefaultRoot /
mais tout le monde peut aller se promener un peu partout... Sinon, il me semble qu'à l'époque où je jouais encore avec un ftp, j'avais créé un répertoire: /ftp/nom_user par utilisateur et que j'y avais collé des liens symboliques vers leurs fichiers.
Back to top
View user's profile Send private message
vlotho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2008
Posts: 77

PostPosted: Mon Jun 08, 2009 9:34 am    Post subject: Reply with quote

en fait j'ai créé chaque user avec un home qui pointe directement dans leur répertoire ftp respectifs. par exemple :

ecolevideo:x:1007:102::/var/www/htdocs/tekinfo/:/bin/false
_________________
Ashl3y dit: moi je suce que si le mec me baise après.
f0xy-dj1 dit: remarque s'il le fait pas il t'aura quand même bien baisé.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum