Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 have VSFTPD installed in CentOS. Where i have one username "lesstrust1", when the user login i want the user only can upload/download to this path /var/www/html/oxwall

$ yum install vsfptd
$ chkconfig vsftpd on

How do i tell VSFTPD to do that?


I have tried following based on man but does not work.

$ vim /etc/vsftpd/config.conf
# end of the file new line added

$ vim /etc/vsftpd/username1

$ service vsftpd restart

Now, when FTP is connected as username1 it does not go to /var/www/html/oxwall but username1 can browse whole system including / or /etc all.

Is this a BUG?

share|improve this question
Did you try man vsftpd.conf? – Keith Feb 2 '13 at 8:15
@Keith: YES Please see my edit above. I did but its not working – YumYumYum Feb 3 '13 at 0:12

You should set "lesstrust1" users home directory to /var/www/html/oxwall.

usermod --home /var/www/html/oxwall lesstrust1

And add the following line to your vsftpd configuration file.

share|improve this answer
You should add that /var/www/html/oxwall must not be writeable by the user otherwise vsftpd will fail to start. – garethTheRed Aug 24 '14 at 17:07

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.