Cannot upload, change or do anything with my FTP account

Posted September 13, 2014 3.1k views


I followed this tutorial to create an FTP account so I could begin working with my server.

I created a user and I could login to the FTP account. But when I tried to change the default index.html with the Welcome to NGINX message to something else I got permission error.

I tried even to create a file and that did not work either.
Does anyone know what I have missed?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

The tutorial you mentioned using restricts users to their own home directories. Using that, you will not be able to edit files owned by root or the webserver.

Since your domain no longer seems to be showing the default Nginx welcome page, it looks like you figured out how to do it. There are a number of different ways to do so. One would be to log in to the server as the root users and adjust the document root for Nginx to be located in a directory that the ftp user can upload to.

by Justin Ellingwood
FTP was a popular way to transfer to files between local and remote computers. Although its use has fallen out of favor due to security concerns, there are some steps that you can take to increase the security of this protocol. In this guide, we will demonstrate how to configure the vsftpd server to user SSL/TLS connections to encrypt data transfer.
  • Hi,

    Yes I uninstalled the VSFTPD and I created an SSH key instead which I found in this tutorial.

    I have managed to login using SFTP as root and I have also found other really good tutorials about how to create several domains in one Droplet.

    I have now learned how to create websites and move them to /var/www/ instead of using the default which is not recommended!

    You can see that I have managed to create 2 sites –> and in one Droplet.

    The next step for me now is to figure out how to enable 2 different SSL Certificates on both domains if that even is possible considering they are on the same IP Adress.

    Thank you for your help! It is really good to know when I am in real trouble that someone will answer! :)