I want to give ssh access to one of my box to someone but I don’t want him to be able to get out of his home directory. Such as if his home is /home/bob, I don’t want him to be able to see /home, / and whatever there’s in /. What’s the best/simplest way to do so?
papapep
Giving the proper permissions to the users and their groups doesn’t work for you?
i.e. if you set /home to 750, nobody but the owner and its group members should read or list it, isn’t it?
Yes but I don’t want to set /home to 750. I want something that would create a chroot automatically when user logs into his /home so he can’t get out, or something similar to that.