This question already has an answer here:
I've read a lot of pages about jailing users and now I'm confused. I want to jail my users to their dirs on sftp and ssh access, so they could see only files in /home/. What solution I should use to do it in the best (and easiest as possible) way?
I'm new in linux and I still can't get it xD