Bonjour!
Je suis entrain d'essayer de me configurer un petit serveur ftp anonyme
sur ma MDK 8.2. J'arrive d�j� � me connecter en ftp localement si je
m'identifie en tant que "olivier". Par contre, je ne peux pas me
connecter en anonymous.
Quand je me connecte avec gftp sur localhost en tant que anonymous avec
mon adresse email comme password, voici ce que �a donne:
----------------------------------------------------------------
Recherche de localhost
Essai avec localhost.localdomain:21
Connect� sur localhost.localdomain:21
220 ProFTPD 1.2.5rc1 Server (ProFTPD Anonymous Server)
[localhost.localdomain]
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS xxxx
530 Login incorrect.
D�connexion de l'h�te localhost.localdomain
Pause de 30 secondes avant la prochaine tentative
----------------------------------------------------------------
Le but de ce serveur est simple: les utilisateurs doivent pouvoir se
connecter en anonymous, et uploader tout ce qu'ils veulent depuis le
r�pertoire /data/Media/ qui est sur une partition fat32 o� je mets tous
mes mp3 et compagnie. On doit pouvoir descendre dans les
sous-r�pertoires et uploader ce qu'on veut, mais pas remonter plus haut
ni modifier les fichiers! Tout ce qui est dans /data/Media/ appartient �
root, est au groupe root et les droits sont en 777 (je sais c pas
bien...). Je me suis dit que le probl�me venait peut-�tre de l�, alors
j'ai essay� les commandes suivantes:
chgrp -R ftp /data/Media
chown -R ftp /data/Media
Pour les deux commandes, le shell me r�pond "Op�ration non permise" (je
pr�cise que j'ai bien entendu fais �a en tant que root...). Pourtant, il
me semble que ma fstab est bien configur�e donc je ne comprends pas...
Je voudrais savoir:
1) Comment changer les droits pour /data/Media (ne serait-ce que pour ne
pas rester con ;-) )
2) Comment faire pour que mon serveur soit accessible en anonymous
Ci-joint les fichiers /etc/fstab et /etc/proftpd.conf
Merci d'avance!
Oliv
--
| -=Olivier RICORDEAU=- | It is rumored that someone once asked |
| Info Sp� C2 |Dr. Bellman how to tell the exercises apart|
| EPITA Promo 2005 |from the research problems, and he replied,|
|[EMAIL PROTECTED]| "If you can solve it, it is an exercise; |
| ICQ: 65452304 | otherwise it's a research problem." |
| Phone: 06-86-72-08-52 | D.Knuth, "The Art Of Computer Programming"|
/dev/hda5 / ext3 defaults 1 1
/dev/hdd3 /data vfat iocharset=iso8859-15,umask=000,codepage=850 1 1
/dev/hdd8 /deb ext2 defaults 1 2
/dev/hdd7 /debhome ext2 defaults 1 2
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
//freedom/G /freedom/cdrom smbfs user,umask=000,codepage=850 0 0
//freedom/WPS /freedom/printer smbfs user,umask=000 0 0
//freedom/C /freedom/win smbfs user,dev,exec,umask=000 0 0
/dev/hdd6 /home ext2 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount
dev=/dev/scd0,fs=iso9660,ro,--,user,iocharset=iso8859-15 0 0
/mnt/floppy /mnt/floppy supermount
dev=/dev/fd0,fs=vfat,--,user,iocharset=iso8859-15,umask=0,sync,codepage=850,noauto 0 0
none /proc proc defaults 0 0
/dev/hda1 /win vfat iocharset=iso8859-15,umask=000,codepage=850 0 0
/dev/hdd1 swap swap defaults 0 0
# This sample configuration file illustrates configuring two
# anonymous directories, and a guest (same thing as anonymous but
# requires a valid password to login)
ServerName "ProFTPD Anonymous Server"
ServerType standalone
# Port 21 is the standard FTP port.
Port 21
# If you don't want normal users logging in at all, uncomment this
# next section
#<Limit LOGIN>
# DenyAll
#</Limit>
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# 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 maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled 300
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
#DisplayFirstChdir .message
# 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 /data/Media/*>
<Limit READ>
AllowAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
# A second anonymous ftp section. Users can login as "private". Here
# we hide files owned by root from being manipulated in any way.
<Anonymous /usr/local/private>
User bobf
Group users
UserAlias private bobf
UserAlias engineering bobf
# Deny access from *.evil.net and *.otherevil.net, but allow
# all others.
<Limit LOGIN>
Order deny,allow
Deny from .evil.net, .otherevil.net
Allow from all
</Limit>
# We want all uploaded files to be owned by 'engdept' group and
# group writable.
GroupOwner engdept
Umask 007
# Hide all files owned by user 'root'
HideUser root
<Limit WRITE>
DenyAll
</Limit>
# Disallow clients from any access to hidden files.
<Limit READ DIRS>
IgnoreHidden on
</Limit>
# Permit uploading and creation of new directories in
# submissions/public
<Directory submissions/public>
<Limit READ>
DenyAll
IgnoreHidden on
</Limit>
<Limit STOR MKD RMD>
AllowAll
IgnoreHidden on
</Limit>
</Directory>
</Anonymous>
# The last anonymous example creates a "guest" account, which clients
# can authenticate to only if they know the user's password.
<Anonymous ~guest>
User guest
Group nobody
AnonRequirePassword on
<Limit LOGIN>
AllowAll
</Limit>
# Deny write access from all except trusted hosts.
<Limit WRITE>
Order allow,deny
Allow from 10.0.0.
Deny from all
</Limit>
</Anonymous>
<Global>
DefaultChdir /data/Media
DefaultRoot /data/Media
AccessGrantMsg "Bienvenue sur le serveur ftp de srv89!! Bon t�l�chargement!"
AllowOverwrite off
AllowChmod off
RootLogin off
DisplayGoAway "Il y a d�j� trop de personnes connect�es sur ce serveur! R�essayez plus
tard..."
DisplayQuit "Au revoir!"
</Global>
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com"