Set up LAMP server with FTP users

September 13, 2018 276 views
Apache LAMP Stack Ubuntu

If I create a droplet with Wordpress, how can I add multiple sftp users that can upload to the website? If I follow any of the tutorials about VSFTP, SFTP or Apache, I end up with users who can upload files to the website, but those files are not readable by the apache user.

1 Answer

Hey friend!

That is a great question. I'm thinking add each user to the www-data group, and make sure the uploaded files have permissions set so that group members can read/write. In my head this seems like a good idea, a grain of salt for the differences between my brain and reality.

A couple of reference documents:
https://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
https://chmod-calculator.com/

Jarland

Have another answer? Share your knowledge.