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

Alright, I've been giving this the best that I can, reading through various tutorials on google, but I cannot seem to get vsftpd running the way I want. For a short while I had it working with one account, but then that stopped and I haven't been able to get it to work since. I've since reformated and reinstall Ubuntu 10.04 LTS. I used apt-get install vsftpd and that's where I am now... I'd really appreciate if anyone could help me understand exactly how this is supposed to work... How do I add FTP accounts and set their home directory to something like /var/www/public_html?

share|improve this question

migrated from Jan 6 '11 at 13:27

This question came from our site for professional and enthusiast programmers.

Not programming. – leppie Jan 6 '11 at 6:26

There is an online copy of the vsftpd.conf man page available here. I would recommend reading through all the configuration options available and determine how you want your ftp server to function as there are a TON of available options...

As for creating users, unless it's configured for anonymous access, vsftpd will authenticate any local user. You can use PAM to control who has rights to login to the FTP daemon also. These settings should also provide you with a starting point for locking a user to a specific directory:

  • chroot_local_user
  • chroot_list_enable
  • secure_chroot_dir
  • local_root

That should get you started...

share|improve this answer

If not the tutorials, I guess your best bet is man vsftpd and man 5 vsftpd.conf.

share|improve this answer

The best few lines when dealing with VSFTP


Getting the directory structure your after ... look at chroot settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.