I have a vsftpd server running on an Ubuntu 9.04 version. The vsftpd server is set to accept anonymous users. The anonymous users are set to /var/ftp
My /etc/vsftpd.conf has these settings:
Code:
listen=YES
anonymous_enable=YES
anon_root=/var/ftp
local_root=/var/ftp
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
tcp_wrappers=YES
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
From another host, I tried to FTP to the Ubuntu machine. I can log in as anonymous. However, when I try to "put" a file, I get a 553 error.
I
don't have SELinux running on my system so it's not SELinux that's preventing anonymous FTP uploads.
I changed the permissions on /var/ftp to 777 but that prevents users from logging in as anonymous to the FTP server for some reason.
I looked at the /var/log/vsftpd.log and I see these log events:
Code:
Tue Nov 17 18:07:12 2009 [pid 13769] CONNECT: Client "10.xxx.1.130"
Tue Nov 17 18:07:17 2009 [pid 13768] [ftp] OK LOGIN: Client "10.xxx.1.130", anon password "password"
Tue Nov 17 18:08:57 2009 [pid 13771] [ftp] FAIL UPLOAD: Client "10.xxx.1.130", "/libflashplayer.so", 0.00Kbyte/sec
Tue Nov 17 18:28:17 2009 [pid 14256] CONNECT: Client "10.xxx.1.130"
I looked at the other threads about trying to upload as an anonymous user using vsftp but none of them have answers or solutions.
Is there anything else I need to do to allow an anonymous user to upload files to /var/ftp?