Step 1 - Enable connection
https://askubuntu.com/questions/890763/connection-to-ftp-always-refused
Step 2 - Permission to edit the file /etc/vsftpd.conf
https://askubuntu.com/questions/150028/you-are-not-the-owner-message-when-trying-to-access-folder
Example:
Step 3 - Enable writing
https://askubuntu.com/questions/410947/permission-denied-in-ftp-even-though-im-the-owner
Important:
Watch this video how to change the file permission in Terminal instead of using a Text Editor:
https://www.youtube.com/watch?v=qpt5mxVVJoE
https://askubuntu.com/questions/890763/connection-to-ftp-always-refused
The default password for the user 'ubuntu' on Ubuntu is blank.# Backup the current configuration file. (optional)
sudo mv /etc/vsftpd.conf /etc/vsftpd.backup
# Uninstall vsftpd and purge the configuration files.
sudo apt-get remove --purge vsftpd
# Lastly, re-install vsftpd.
sudo apt-get install vsftpd
# Test
ftp -p x.x.x.x
Step 2 - Permission to edit the file /etc/vsftpd.conf
https://askubuntu.com/questions/150028/you-are-not-the-owner-message-when-trying-to-access-folder
sudo chown -R username /path/to/directory
Example:
sudo chown -R ubuntu /etc/vsftpd.conf
Step 3 - Enable writing
https://askubuntu.com/questions/410947/permission-denied-in-ftp-even-though-im-the-owner
In the file "/etc/vsftpd.conf", uncomment the line#write_enable=YES
Important:
Watch this video how to change the file permission in Terminal instead of using a Text Editor:
https://www.youtube.com/watch?v=qpt5mxVVJoE
sudo su
vi /etc/vsftpd.conf
ESCAPE :wq (to exit)
Save the file and restartvsftpd
with sudoservice vsftpd restart