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

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

1 Answer 1

up vote 0 down vote accepted

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

Best wishes,
Fabian

share|improve this answer

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.