Solved

setting up proftp...

Posted on 2004-08-06
3
202 Views
Last Modified: 2010-04-20
Hello everyone,
I am setting up a new linux server for virtual hosting. I installed apache, proftp, mysql, and php.
I think I figured out the setting for virtual hosting in apache. I created 5 name based websites sharing the same IP address and also created 5 users for those websites.  Now I want to setup ftp for those websites. Of course a user only can access to his or her web directory.
How do I specify which user connects to which directory
0
Comment
Question by:soweyoung
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 11740497
The safest way to do this is to have the web site directories owned by the Apache user (usually nobody). Then configure Proftpd to use a private passwd & group file and don't create Linux accounts for those users. In the Proftpd passwd file specify the site dir as the FTP user's home dir and they'll be locked into that directory.

This is safer than having Linux accounts since a compromise of the FTP user's password can't be used to compromise the Linux system.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question