Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have created a user in linux (User1 for the purpose of this question). I have changed User1's home directory to a new directory. I would like to ensure that User1, when FTP'ing, cannot browse out of their home directory but can still browse deeper into it.

Thanks in advance.

share|improve this question

migrated from stackoverflow.com Feb 17 '12 at 5:35

This question came from our site for professional and enthusiast programmers.

    
You'll need to tell us which FTP server you're running. –  phasetwenty Feb 16 '12 at 18:41

1 Answer 1

up vote 2 down vote accepted

Cause your FTP server process to chroot the user to their home directory. This is an option in most popular FTP daemons.

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.