PDA

View Full Version : Serveur FTP


Magi-X
8 décembre 2003, 15h35
Salu,

Voila pour lecole on doit installer un serveur FTP ! Et on doit chercher nous même un tutorial sur le net! Sauf que la je ne trouve pas !

Donc il faut installer un serveur FTP qu'on sait acceder d'un autre ordi (duh) ! Enfin si qqun (ptete mon ami Fred :p ) sais ou je peux trouver cela (de pref en Anglais) !

Merci !

LeMoi
8 décembre 2003, 15h44
je ne peux que te renvoyer vers un sujet similaire ;)
http://www.newdimension-fr.net/forums/showthread.php?t=422

Pwet
8 décembre 2003, 17h23
Sous Windows ou *nux ?

Magi-X
8 décembre 2003, 17h27
je ne peux que te renvoyer vers un sujet similaire ;)
http://www.newdimension-fr.net/forums/showthread.php?t=422

Sous Windows ou *nux ?

Euh je suis dans la partie Unix/Linux ! Donc c'est pour linux ! Le RedHat 9 plus precisement !

Pwet
8 décembre 2003, 18h16
ah oué
lol :)
g pris a news sur la page daccueil, donc j'ai pas fait gaffe...

Bon, tiens :
PROFTPD (http://lea-linux.org/reseau/proftpd.php3)

VSFTPD (http://www.hsc.fr/ressources/breves/vsftpd.html)

Voilà, j'espere que ça te servira....

Magi-X
10 décembre 2003, 09h58
Hello, bon j'ai pris comme serveur ftp "proftp" ! Mais j'ai quelque probleme !

Mais j'ai un probleme ! Donc le but de lexercices est de creer un ptit serveur ftp pour un compte donc user + pass ! et un anonymous !

Pour le compte avec le user+pass ca fonctionne ! C'est pour le anonymous que j'ai des bleme !

Voici lerreur dans mon ftp (gftp):

220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [magixport.lan]
USER anonymous

331 Anonymous login ok, send your complete email address as your password.
PASS xxxx
530-Unable to set anonymous privileges.
530 Login incorrect.
Disconnecting from site localhost

Et voica la config de mon proftpd.conf

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# 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 30

# Set the user and group under which the server will run.
User magix
Group ti

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# Our "basic" anonymous configuration, including a single
# upload directory ("uploads")
<Anonymous ~ftp>

# Allow logins if they are disabled above.
<Limit LOGIN>
AllowAll
</Limit>

# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"

User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>

# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory uploads/*>
<Limit READ>
DenyAll
</Limit>

<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>

Si quelqu'un a une idee !

Merci