PDA

View Full Version : vsftpd e errore 550


Parny
18-05-2009, 20:00
Salve a tutti

Ho un serverino con Ubuntu Desktop 8.04 e come server FTP ho installato vsFTPd (via apt-get install vsftpd).

Questo è il mio file di configurazioni:
# Connessione
listen=YES
listen_port=21
connect_from_port_20=NO

# Anonymous
anonymous_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO

# Local
local_enable=YES
write_enable=YES
local_umask=022

#log
xferlog_enable=YES
log_ftp_protocol=YES
xferlog_file=/var/log/vsftpd.log


# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

Ho alcuni problemi di trasferimento con determinati client, che non so da cosa dipendano.
Alcuni, per esempio il semplice wget, funzionano alla perfezione, altri, per esempio aria2 (http://aria2.sourceforge.net/) o molti download manager per windows non funzionano. Tutti mi danno un errore del tipo 550 Could not get file size.

Ecco un log di vsftpd:
Mon May 18 20:50:11 2009 [pid 5182] FTP response: Client "127.0.0.1", "220 (vsFTPd 2.0.6)"
Mon May 18 20:50:11 2009 [pid 5182] FTP command: Client "127.0.0.1", "USER enrico"
Mon May 18 20:50:11 2009 [pid 5182] [enrico] FTP response: Client "127.0.0.1", "331 Please specify the password."
Mon May 18 20:50:11 2009 [pid 5182] [enrico] FTP command: Client "127.0.0.1", "PASS <password>"
Mon May 18 20:50:11 2009 [pid 5181] [enrico] OK LOGIN: Client "127.0.0.1"
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP response: Client "127.0.0.1", "230 Login successful."
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP command: Client "127.0.0.1", "TYPE I"
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP response: Client "127.0.0.1", "200 Switching to Binary mode."
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP command: Client "127.0.0.1", "CWD /"
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP response: Client "127.0.0.1", "250 Directory successfully changed."
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP command: Client "127.0.0.1", "SIZE prova.txt"
Mon May 18 20:50:11 2009 [pid 5183] [enrico] FTP response: Client "127.0.0.1", "550 Could not get file size."


A giudicare dall'errore penso sia proprio un problema di configurazione del server, anche perchè i client "malfunzionanti" in realtà funzionano alla grande con qualsiasi altro server (sia FTP che HTTP)

Qualcuno ha qualche idea di come si potrebbe risolvere?