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.

I have an Ubuntu Server, where several users log in to upload some files. Each user has a home directory, in which I 'd like to be chrooted.

e.g. user1 connects with sftp to the server and is located at his home directory (e.g. /var/www/user1) and I 'd like him to be unable to "see" outside of this directory. Is there any easy way to handle this?

share|improve this question
    
If you downvoted this question, please comment and say why. I don't see an obvious reason for the downvote. –  pjmorse Apr 27 '12 at 17:53

1 Answer 1

up vote 0 down vote accepted

Yes you can, look for ChrootDirectory by man sshd_config in your system, unless your sshd is too old.

share|improve this answer
    
From memory, it's SSH 4.8p1 where they added this. If you want an LTS release you'll have to go for 12.04. –  Ladadadada Apr 27 '12 at 15:34
    
You are right about the sshd version, I just googled the openssh server log and it is there. Thanks! –  johnshen64 Apr 27 '12 at 15:44

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.