Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I would like to give a user access to our ftp server. Not to everything, just the directory he needs to work in.

When he logs in he should be directed to /var/www/hisdir and not be able to go outside it. I've read about restricting a user to his home directory but not to other directories.

If this is not possible with vsftpd is there maybe something thats more configurable?

share|improve this question
up vote 3 down vote accepted

restrict access to the home folder and then mount the folder the user needs to work in under his home directory.

add the line to fstab

/var/www/hisdir     /home/username/somefolder name          none        bind     0   0
share|improve this answer

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.