I'm new to FTP and I've been following this DigitalOcean tutorial.
Everything works great except that a user (at least in FileZilla) cannot write to the root of his /home/user/ftp
folder, only /home/user/ftp/files
. An attempt to create in the root folder results in:
Command: PASV
Response: 227 Entering Passive Mode (104,131,29,61,191,224).Command: STOR asdfa
Response: 553 Could not create file.
Error: Critical file transfer error
I scanned /etc/vsftpd.conf
file for the word files
but I can't find that config anywhere. I've used FTP before and generally you drop and and the files are right there, without needing to navigate to folders.
Is this a chown
problem of some sort in Ubuntu?
Best Answer
Your default
/etc/vsftpd.conf
doesn't initially include all the possible directives the configuration file supports. The rest can be found fromman vsftpd.conf
.Answer to your question can be found in the very tutorial you are following:
In other words, you have created the
/home/user/ftp
folder to allow vsftp use chroot jails without making the home folder/home/user/
read only to the user. Therefore you are already doing best practices and should not be worried about the error as it is normal and desired behaviour.It is possible but highly not recommended to disable chroot jail.
If this is only about enchanging the user experience, you could try append directly to
/home/user/ftp/files
after login by adding/modifying vsftp.conf directives: