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.

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?

Cheers

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Use the DefaultRoot configuration directive

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.