You are not logged in.
Yesterday I could access my PC's vsftpd server just fine from my phone via wifi.
Today the 2 ftp clients I tried on my (android) phone both give error 550 permission denied.
I tried restarting my pc and the service, but it didn't help.
I didn't change anything on vsftpd configuration, so why it suddenly no longer works?
The only thing I did was some pacman -Suy update.
Since it's in the same local network, I use active mode to connect. I didn't change any configuration in my android ftp client either of course. And trying to connect passively of course doesn't work either.
Here is my vsftpd.conf:
anonymous_enable=NO
local_enable=YES
guest_enable=YES
guest_username=virtual
virtual_use_local_privs=YES
local_root=/home/virtual/$USER
user_sub_token=$USER
allow_writeable_chroot=YES
check_shell=NO
write_enable=YES
local_umask=71
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=NO
chown_uploads=YES
chown_username=mirage
nopriv_user=virtual
ftpd_banner=Welcome!
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
listen=YES
local_max_rate=1000000 # Maximum data transfer rate in bytes per second
max_clients=4 # Maximum number of clients that may be connected
max_per_ip=3 # Maximum connections per IP
listen_port=1921
pasv_addr_resolve=YES
pasv_address=my.dyndns.com
pasv_min_port=41921
pasv_max_port=47921
pasv_enable=YES
port_enable=YES
setproctitle_enable=YES
cmds_allowed=ABOR,APPE,CWD,DELE,HELP,LIST,MDTM,MKD,NLST,PASS,PASV,PWD,QUIT,RETR,RMD,RNFR,RNTO,SIZE,STOR,TYPE,USER,LS,CDUP
The only lines that are shown in /var/log/vsftpd.log are:
Tue Jul 8 16:42:04 2014 [pid 2] CONNECT: Client "192.168.1.22"
Tue Jul 8 16:42:04 2014 [pid 1] [mirage] OK LOGIN: Client "192.168.1.22"
Edit: It seems the 550 permission denied only happens when the client is in the same local network, as with my phone.
I tried to connect from the internet and that actually worked. So the problem is that vsftpd doesn't accept "local" connections anymore it seems, although I have local_enable=YES.
Last edited by mir91 (2014-07-23 15:50:13)
Offline
..ok, can anyone maybe recommend a (working) ftp server for Arch? :-p
Offline
You can try proftpd server. It works very well for me.
Offline
Ok, I actually fixed it.
It was due to a
cmds_allowed=...
line. Apparently vsftpd will BLACKLIST all commands that are NOT in this list, if and only if this line exists in the config file!
After adding PORT,LPRT and SYST to it, everything was ok.
Last edited by mir91 (2014-07-23 15:49:57)
Offline