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

I wonder how can I limit access to the file system when logged in through FTP. Currently, users will see all of the HDD. How can I limit userA to just /www/userA for example. I am using Ubuntu 11 with vsftpd

share|improve this question

If your users are local users or virtual users being treated as local users on the system then you can use the chroot_local_user directive in vsftpd.conf


This will chroot all local users to the directory tree below their home directory.

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.