Basically upload / download is somewhat blocked by 550
After much googling, i have done the following
- chmod 777 -R /home/ftpRepo
- open up the ports (20,21, passive, and more)
- write enabled
And it gets weirder...
- I can upload files
- I cannot download / rename / edit files
- I cannot create directory
And : ftpRepo is not the actual user
iptables dump
iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:300
ACCEPT tcp -- anywhere anywhere tcp dpt:301
ACCEPT tcp -- anywhere anywhere tcp dpts:1023:1050
ACCEPT tcp -- anywhere anywhere tcp dpts:ftp-data:ftp
ACCEPT tcp -- anywhere 202.54.1.20 tcp spts:1024:65535 dpt:ftp state NEW,ESTABLISHED
ACCEPT tcp -- anywhere 202.54.1.20 tcp spts:1024:65535 dpts:1024:65535 state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere 202.54.1.20 tcp spts:1024:65535 dpt:ftp-data state ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 202.54.1.20 anywhere tcp spt:ftp dpts:1024:65535 state ESTABLISHED
ACCEPT tcp -- 202.54.1.20 anywhere tcp spts:1024:65535 dpts:1024:65535 state ESTABLISHED
ACCEPT tcp -- 202.54.1.20 anywhere tcp spt:ftp-data dpts:1024:65535 state RELATED,ESTABLISHED
The following is the shorten config file
listen=YES
anonymous_enable=NO
user_sub_token=$USER
guest_enable=YES
guest_username=ftpRepo
pasv_min_port=1023
pasv_max_port=1050
local_enable=YES
write_enable=YES
anon_upload_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
chmod 777 -R .....– Mircea Vutcovici Dec 23 '11 at 6:49