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've an Ubuntu Server. I installed vsftpd. I want that specific user will have full premissions to /var/www/someDirectory and her child directories/files. So I created a user with this commands:

useradd -b /var/www/someDirectory -d /var/www/someDirectory user1
passwd user1
chown user1 /var/www/someDirectory

It's working, and when this user login to the ftp, he's automatically in the path /var/www/someDirectory. The problem is, he can remove the someDirectory from the path, and see /var/www... he can write any path and he have full premssions to it...

I want that he will only can see/write/any premssion the /var/www/someDirectory and her child directories, and no other directory in the system.

How can I do it?

Thank you so much and sorry for my English - I hope you understood me.

share|improve this question
up vote 0 down vote accepted

What you're searching for is chroot'ing. This limits a user to his home directory.

Best wishes,

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.