I have set up a FTP server using vsftpd
and enabled anonymous upload and download. The problem I have is that when I upload a directory it will be uploaded successfully (I can see it in server), but the next time I want to check that directory, FTP client shows an empty directory!!
There is no error logged in /var/log/vsftpd.log
. The pub
folder (home folder for anonymous ftp user) has also write permission. I tested various config options but none helped!
The latest config options I set are like below:
anonymous_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
dirlist_enable=YES
I even turned off firewall once for testing it, but it didn't change anything!
seccomp_enable=YES
(the default) on Gentoo caused this behavior; changing this setting toNO
fixed it. Interestingly on Debian vsftpd reportedly exhibited the same seccomp warnings, but did not cause vsftpd to fail when listing a directory. – Winny May 14 '19 at 16:02