Question

FTP Permissions to upload files

  • Posted May 11, 2014

i have created a Ubuntu LEMP droplet etc and installed sever apps via terminal etc. But now i want o upload some files via ftp, but i am getting the permissions issue.

I have set up a new user and disabled root for security etc but when i ssh into my www shows the user/group as root:www-data.

in order to enable me to ftp into this wold i simply need to change the user:group to:

myuser:www-data via chown -R myuser:www-data or is there a better way to enable me to ftp into my droplet?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

sudo usermod -a -G www-data your-user  

(you have to add “your-user” to “www-data” :) )

You should be able to just add your user to the the www-data group: <br> <br><pre> <br>sudo usermod -a -G www-data your-user <br></pre>