vsftpd - Failed to retrieve directory listing
by enuotiz from LinuxQuestions.org on (#51XHS)
Hi,
I'm trying to set up vsftpd in an ubuntu docker image and filezilla (or Chrome) cannot list directories, even if the user is logged in.
My vsftpd.conf file looks like this
listen=YES
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
chroot_list_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
pasv_enable=Yes
port_enable=YES
pasv_min_port=2121
pasv_max_port=2142
user_sub_token=$USER
local_root=/home/$USER/ftp
userlist_enable=YES
userlist_file=/etc/vsftpd.chroot_list
And when I connect to 'ftp localhost' inside the container, it works well, I can connect, list the directories and download files properly.
Does anyone have any idea on what could be wrong in the configuration file?
Thanks


I'm trying to set up vsftpd in an ubuntu docker image and filezilla (or Chrome) cannot list directories, even if the user is logged in.
My vsftpd.conf file looks like this
listen=YES
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
chroot_list_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
pasv_enable=Yes
port_enable=YES
pasv_min_port=2121
pasv_max_port=2142
user_sub_token=$USER
local_root=/home/$USER/ftp
userlist_enable=YES
userlist_file=/etc/vsftpd.chroot_list
And when I connect to 'ftp localhost' inside the container, it works well, I can connect, list the directories and download files properly.
Does anyone have any idea on what could be wrong in the configuration file?
Thanks