Report this

What is the reason for this report?

How to setup multiple FTP users for web directory?

Posted on December 6, 2016

How can I easily setup and maintain multiple user accounts who need access to the web directory used by Apache?

This single directory (with subdirectories) contains sample files for users to download and they are maintained by a handful of users who should have r/w access and the ability to create folders and overwrite eachother’s files.

They should not have access beyond their ability to manage these files as described above. These users know how to use FTP that shouldn’t be an issue.

What is the best way to set this up?



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!

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.

There are a couple ways to configure an FTP server like vsftpd to restrict users to a directory (and it’s subdirectories) that you select. This guide will help you in installing vsftpd and this answer on StackExchange provides two good examples on the methods for setting up the directory restriction (chroot).

There is also a link at the top of the first tutorial to a guide on securing vsftpd with SSL/TLS encryption. As FTP is an inherently insecure protocol by default this is recommended.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.