View previous topic :: View next topic |
Author |
Message |
driden91 Apprentice
Joined: 26 Jul 2004 Posts: 232 Location: paris
|
Posted: Thu Nov 24, 2005 3:28 pm Post subject: [vsftpd] ne marche pas avec anonymous !!! |
|
|
salut a tous voila, je dois faire cohabiter avec vsftpd des compte avec mot de passe et un compte anonymous ... cela fonctionne pour les comptes a mdp mais pas pour le compte anonymous, avec filezilla ca me met un 530 permission denied ... pouvez vous m'aider merci ...
voici mon vsftpd.conf:
Code: | dirmessage_enable=YES
# banner_file=/etc/vsftpd/vsftpd.banner # edit banner first
chown_uploads=NO
xferlog_enable=YES
idle_session_timeout=600
data_connection_timeout=120
ascii_upload_enable=NO
ascii_download_enable=NO
chroot_list_enable=YES
background=YES
listen=YES
ls_recurse_enable=NO
anonymous_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
local_enable=YES
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.user_list
write_enable=YES
connect_from_port_20=YES
nopriv_user=nobody
xferlog_file=/var/log/vsftpd/vsftpd.log
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
anon_root=/export/home/nai
no_anon_password=YES
nopriv_user=nobody
|
_________________ l'ange des tenebres vit la lumiere au fond de la nature humaine.... |
|
Back to top |
|
|
Zanton Apprentice
Joined: 16 Jan 2005 Posts: 277
|
Posted: Thu Nov 24, 2005 5:53 pm Post subject: |
|
|
Quels droits sur le répertoire /home/ftp ? _________________ Zanton |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Thu Nov 24, 2005 8:23 pm Post subject: |
|
|
Bonne idée, mais c'est sur "anon_root=/export/home/nai" qu'il faut regarder alors.
Si tu ne veux pas ouvrir ce repertoire à tout le monde, il faut alors créer un utilisateur spécifique, et jouer sur "nopriv_user=[spécifique]".
Si c'est pas une histoire de droit, c'est peut être çà:
Code: | userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.user_list |
Moi j'ai anonymous qui figure explicitement dans la liste.
NB: tu m'en voudras pas, je t'ai piqué 1 ou 2 paramètres que je connaissais pas et qui m'ont l'air intéressants _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
driden91 Apprentice
Joined: 26 Jul 2004 Posts: 232 Location: paris
|
Posted: Fri Nov 25, 2005 7:27 am Post subject: |
|
|
ab j'ai fait tes modif et ya de l'avancement mais ca ne fonctionne toujours pas ...
voila ce que ca me renvoi:
Code: | Etat : Connexion à XXXXX ...
Etat : Connecté à XXXXX. Attente du message d'accueil...
Réponse : 220 (vsFTPd 1.2.2)
Commande : USER anonymous
Réponse : 500 OOPS: vsftpd: refusing to run with writable anonymous root
Réponse : 500 OOPS: child died
|
et voila les droits sur mon repertoire:
Code: | drwxr-xr-x 3 ftp ftp 4096 Nov 24 09:30 nai
|
_________________ l'ange des tenebres vit la lumiere au fond de la nature humaine.... |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Fri Nov 25, 2005 8:42 am Post subject: |
|
|
J'ai googlisé pendant au moins 3 secs et j'ai trouvé çà:
Quote: | Q) Help! I'm getting the error message "refusing to run with writable anonymous
root".
A) vsftpd is protecting against dangerous configurations. The cause of this
message is usually dodgy ownership of the ftp home directory. The home
directory should NOT be owned by the ftp user itself. Neither should it
be writable by the ftp user. A way to fix this is:
chown root ~ftp; chmod -w ~ftp |
_________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
driden91 Apprentice
Joined: 26 Jul 2004 Posts: 232 Location: paris
|
Posted: Fri Nov 25, 2005 10:00 am Post subject: |
|
|
merci, la ca marche mais il me reste un pb !!! grrr
c'est que ca ne transfert pas ... ca me met erreur critique de transferts ....
c'est bon ca marche ... mais en fait je veux juste que le compte anonymous puisse voir les fichiers du repertoires et les recuperer mais je ne vuex pas qu'il en dépose ... je ne vois pas comment faire .... _________________ l'ange des tenebres vit la lumiere au fond de la nature humaine.... |
|
Back to top |
|
|
driden91 Apprentice
Joined: 26 Jul 2004 Posts: 232 Location: paris
|
Posted: Fri Nov 25, 2005 11:57 am Post subject: |
|
|
personne n'a une idée ??? _________________ l'ange des tenebres vit la lumiere au fond de la nature humaine.... |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Fri Nov 25, 2005 12:33 pm Post subject: |
|
|
driden91 wrote: | merci, la ca marche mais il me reste un pb !!! grrr
c'est que ca ne transfert pas ... ca me met erreur critique de transferts ....
c'est bon ca marche ... mais en fait je veux juste que le compte anonymous puisse voir les fichiers du repertoires et les recuperer mais je ne vuex pas qu'il en dépose ... je ne vois pas comment faire .... |
Huh???
Ben t'as bien çà pourtant:
Code: | anon_upload_enable=NO |
_________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
Antares Apprentice
Joined: 04 Apr 2005 Posts: 184 Location: France
|
Posted: Fri Nov 25, 2005 12:37 pm Post subject: |
|
|
c'est indispensable pour savoir comment configurer vsftpd !
tu dois pouvoir t'en sortir avec ces options :
Quote: | anon_world_readable_only
When enabled, anonymous users will only be allowed to download files which are world readable. This is recognising that the ftp user may own files, especially in the presence of uploads.
anon_other_write_enable
If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as deletion and renaming. This is generally not recommended but included for completeness.
anon_mkdir_write_enable
If set to YES, anonymous users will be permitted to create new directories under certain conditions. For this to work, the option write_enable must be activated, and the anonymous ftp user must have write permission on the parent directory.
anon_other_write_enable
If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as deletion and renaming. This is generally not recommended but included for completeness. |
Sinon, tout est dans le manuel (RTFM !!!) |
|
Back to top |
|
|
Antares Apprentice
Joined: 04 Apr 2005 Posts: 184 Location: France
|
Posted: Fri Nov 25, 2005 12:37 pm Post subject: |
|
|
damned grillé |
|
Back to top |
|
|
driden91 Apprentice
Joined: 26 Jul 2004 Posts: 232 Location: paris
|
Posted: Fri Nov 25, 2005 3:20 pm Post subject: |
|
|
merci j'ai reussi en fait c'etait un probleme de droit sur le repertoire ... merci beaucoup _________________ l'ange des tenebres vit la lumiere au fond de la nature humaine.... |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Fri Nov 25, 2005 4:01 pm Post subject: |
|
|
-> (résolu) dans le titre, stp _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
|