FTP Permissions to upload files

May 11, 2014 5.2k views
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?
2 Answers
You should be able to just add your user to the the www-data group:

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

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

Have another answer? Share your knowledge.