I have vsftpd installed for file transfers, and unsurprisingly, it's not working.
It's just for the local network, so I don't need anonymous. But although I log in, I can't execute any commands at all. 'ls' produces
I do have an ftp user, with files & a symlink, but I don't even know what directory I am landed in when I log in. I made this config file,
Code:
anonymous_enable=YES
local_enable=YES
dirlist_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
download_enable=YES
xferlog_enable=YES
chown_uploads=YES
chown_username=ftp
xferlog_file=/var/log/vsftpd.log
data_connection_timeout=5
nopriv_user=ftp
ftpd_banner=Welcome to RoseViolet's FTP service.
listen=YES
seccomp_sandbox=NO
and when it didn't work, I grabbed a "working" config from online, and made the minimum of mods
Code:
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
secure_chroot_dir=/home/ftp
pam_service_name=vsftpd
ssl_enable=NO
force_dot_files=YES
Both produce the same error and refuse any ftp commands. I gather there's a data channel, and a (separate) command channel which complicates the ftp protocol, but I couldn't link that to a config setting. Can anyone spot the obvious gaffes in either config? Thx.