How to setup multiple FTP users for web directory?

December 6, 2016 5.6k views
Storage Apache Ubuntu 16.04

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?

1 Answer

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.

by Etel Sverdlov
Vsftpd is a fast and secure FTP server. Installing an FTP server can assist you with uploading files to your droplet. This tutorial describes how to install and set up vsftpd on Ubuntu 12.04.
Have another answer? Share your knowledge.