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?

link|improve this question

55% accept rate
feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

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