Pages : 1
#1 Le 27/12/2007, à 20:46
- chiron
[Résolu] Proftpd: Arrachage de cheveux...
Bonsoir, je me prends la tête avec proftpd, je n'y arrive pas, le serveur est inaccessible en local ou depuis le net. Même pour l'utilisateur anonymous on me demande un mot de passe, et quand j'essaie de me logguer avec mon nom d'utilisateur et mon mdp de session, il est refusé.
J'ai essayé ça:
http://doc.ubuntu-fr.org/proftpd
et ça:
http://ubuntuforums.org/showthread.php?t=79588&highlight=proftpd
Rien à faire....
Si une bonne à¢me veut bien me guider, je cherche à monter un serveur tout simple, o๠un utilisateur toto avec le mot de passe tutu, accède au répertoire /home/ftp/ et peut télécharger des fichiers que j'ai mis dedans.
J'ai tellement fait d'essais avec webmin et gproftpd que je ne suis plus sûr de mon fichier de config, il faudrait peut-être repartir depuis zéro?
# To really apply changes reload proftpd after modifications.
AllowOverwrite on
AuthAliasOnly on
# Choose here the user alias you want !!!!
UserAlias ftp anonymous
ServerName "jyl"
ServerType standalone
DeferWelcome on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks off
TimeoutNoTransfer 600
TimeoutStalled 100
TimeoutIdle 2200
#
DisplayFirstChdir .message
ListOptions "-l"
RequireValidShell off
TimeoutLogin 20
RootLogin off
# It's better for debug to create log files ;-)
ExtendedLog /var/log/ftp.log
TransferLog /var/log/xferlog
SystemLog /var/log/syslog.log
#DenyFilter \*.*/
# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)
UseFtpUsers off
# Allow to restart a download
AllowStoreRestart on
# Port 21 is the standard FTP port, so you may prefer to use another port for security reasons (choose here the port you want)
Port 21
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 8
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
PersistentPasswd off
MaxClients 8
MaxClientsPerHost 8
MaxClientsPerUser 8
MaxHostsPerUser 8
# Display a message after a successful login
AccessGrantMsg "welcome !!!"
# This message is displayed for each access good or not
ServerIdent on "you're at home"
# Set /home/FTP-shared directory as home directory
DefaultRoot /home/ftp
# Lock all the users in home directory, ***** really important *****
DefaultRoot ~
MaxLoginAttempts 5
#VALID LOGINS
<Limit LOGIN>
AllowUser userftp
AllowUser jyl
# AllowUser anonymous
# DenyALL
</Limit>
<Directory /home/ftp>
Umask 022 022
AllowOverwrite off
<Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
DenyAll
</Limit>
</Directory>
<Directory /home/ftp/download/*>
Umask 022 022
AllowOverwrite off
<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
DenyAll
</Limit>
</Directory>
<Directory> /home/ftp/upload/>
Umask 022 022
AllowOverwrite on
<Limit READ RMD DELE>
DenyAll
</Limit>
<Limit STOR CWD MKD>
AllowAll
</Limit>
</Directory>
Dernière modification par chiron (Le 28/12/2007, à 16:50)
In hoc signo vinces.
Hors ligne
#2 Le 27/12/2007, à 22:03
- onlyforme
Re : [Résolu] Proftpd: Arrachage de cheveux...
Pareil, même problème commence à me les hacher menu le PROFTPD
Si tu trouves laisse un message avec la solution...
Onlyforme
Newbie depuis le 23/12/07
Ubuntu 8.04
Hors ligne
#3 Le 28/12/2007, à 03:33
- Psykotik
Re : [Résolu] Proftpd: Arrachage de cheveux...
tu as ouvert le port 21 (dans ton routeur) ?
Hors ligne
#4 Le 28/12/2007, à 04:38
- best_friend_fr
Re : [Résolu] Proftpd: Arrachage de cheveux...
Salut,
Beaucoup s'y sont casse les dents, ne t'inquiete pas, tu n'es pas tout seul.
alors,
UserAlias ftp anonymous
selon moi, tu veux mettre
UserAlias anonymous ftp
En fait, je te conseille de recopier le premier fichier de la doc. Ca te mettra un acces anonyme. On pourra le modifier si tu veux.
Attention : Le user ftp doit exister. Son home devient la racine de ton serveur.
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#5 Le 28/12/2007, à 16:50
- chiron
Re : [Résolu] Proftpd: Arrachage de cheveux...
Résolu.
Bon, ça y est. J'ai fait le GRAND ménage et suis reparti depuis le début:
sudo apt-get remove proftpd
cd /etc/proftpd
sudo rm *
cd ..
rmdir proftpd
cd /home/ftp
rm *
cd ..
rmdir ftp
apt-get install proftpd
j'ai ensuite resuivi le tuto: http://doc.ubuntu-fr.org/proftpd
il faut autoriser le port 21 pour tout le monde dans le firewall
firestarter le fait très bien
et enfin dans le routeur rediriger le port 21 vers l'IP du serveur.
et voilà !
In hoc signo vinces.
Hors ligne
Pages : 1