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 setup vsftpd, and changed the chroot settings in the vsftpd.conf file.

But how do I make a user able to access only /var/www/html/username_here/

I made the user with useradd, but what's next? Thanks :)

share|improve this question

Look at the chroot_local_user and local_root options:

You can also get really restrictive by specifying cmds_allowed

Hope this helps.


share|improve this answer

Edit your /etc/vsftpd/vsftpd.conf file and add a line that says


then restart your vsftpd

/sbin/service vsftpd restart

This will restrict local users to their home directories.

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.