0

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?

Paris
  • 123
  • 1
  • 5
  • 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 Answers1

0

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

jscott
  • 24,484
  • 8
  • 79
  • 100
johnshen64
  • 5,865
  • 24
  • 17