Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Installed vsftpd server in Redhat Linux 5. Where, i want to give the ftp access for my developer other than home directory that is for example /var/www/ directory contains project data.

Here, how can i set the root folder for the every ftp user for accessing the specific project folder assigned to the ftp user in /var/www/ dir?

share|improve this question
up vote 2 down vote accepted

You can change the home directory of each user to point to the path of his/her project. A command like:

sudo usermod -d /var/www/path/to/project username

will do it. The FTP user after connect will see his/her project if the users are chrooted in the vsftp config.

share|improve this answer
thanks it work for me – Mughil Dec 26 '11 at 3:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.