Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

chroot_local_user=yes

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

share|improve this answer
add comment

Your Answer

 
discard

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.