Many nginx tutorials say to make ownership of /var/www belong to www-data:www-data but tutorials on vsftpd say to make ownership that of the user you’re using to login via FTP.
So which is the best way to give an FTP user to read/write in /var/www?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If it’s the best way it’s arguable, but if I remember it right I added my ftp users to the www-data group, created a folder for the user in the /var/www/ and gave him its ownership, setting permissions accordingly.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.