Create FTP users with access to only specified folders


I have my server where I host my page, but also want to host some pages for my friends, but I dont want them to have complete access to all folders on the server.

What is the best way to create a ftp user, so that I can set a login/password and define the folders where they have access, for example, i want that /var/www/ will be their / root folder when they connect though ftp.

I was checking some ftp program, and the problem is that I had to create new linux user for each ftp account, Im looking for a simpler solution.

Thank you!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

This comment has been deleted

IMHO, giving your friends FTP access w/passwords creates too much of a security risk. I’d set up <a href=“”>key-based authentication</a> for them; so that they can connect via SFTP with <a href=“”>FileZilla</a>.