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

This question has two parts, sorry if it's a bit simple but I'm struggling with it.

Firstly, I've set up user accounts, which log in fine to the FTP server. However, within the FTP client I can view every single folder above the default user folder. How do I stop this from happening so that the user can't go up the directory tree and in to every folder held on the server.

Secondly, I want the default folder which the user is given to not be in the User folder (if that makes sense). I want to be able to have direct access to the www/html folder as this is where me and my friend will be uploading our project to. So when I log in, I want to be taken to the html folder instead of my user area.

Is this the correct way to do it? Or is there a way where whatever I put in to my user folder will be copied directly to the html folder?


share|improve this question
up vote 0 down vote accepted

Use the DefaultRoot configuration directive

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.