Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.