I was wondering if there's a way to give users access to only a certain directory (i.e. the home directory as the title says). I'm trying to allow friends to ssh/sftp into the server without allowing them to screw anything up or snoop around. The only access is through SSH/SFTP if that helps. Based on what the internet is saying chroot is the best option(not sure what that really is) but I'm relatively new to linux and am completely confused. If someone could give me a detailed step by step walkthrough on how to implement chroot or some other way to accomplish the same thing it would be great.
Ubuntu Server Edition 12.04 (LTS)