I have installed vsftpd in ubuntu. I have created a user in name of ftpadmin by command

sudo useradd ftpadmin

and I have set its password too, I also have created a home directory for it using

sudo mkdir /home/ftp. 

My problem is this user can access and see others directories which I don't want. I want ftpadmin can access only to it's own directory. I have tried to make a directory in var/www too but it didn't work.


Did you do any homework at all ?

First page of a Google search leads to the solution - Set chroot_local_user=yes in /etc/fsftpd/vsftpd.conf

  • thanka you alot. one more thing now my ftpadmin don't have access to write anything in its directory.it is the owner with 770 permission but it cant write anything – tina Aug 24 '15 at 6:12

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.