how would i safely lock users to thier home dir?
I have a few questions, the first is how would i safely lock users to there home dir, so that they are not able to roam around the box freely?
My second question is I have added a group called ftpusers, which im am adding the users I only want to allow to sftp in. Ive tried replacing "/bin/bash" with "/sbin/nologin" in the passwd file for that account, but that then doesnt allow them to sftp in? How can I fix this and do it right?