LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   SSH lock users to the Home Directory (http://www.linuxquestions.org/questions/linux-security-4/ssh-lock-users-to-the-home-directory-54600/)

jasonweb 04-11-2003 01:55 PM

SSH lock users to the Home Directory
 
I have been setting up an SSH server at remote site for my users to be able to login using SFTP and backup their work. This works well but only one problem even after chaning the rights to the folders using CHMOD to 700 the users still can go out of their home diretory and browse the upper levels. It's not so bad because the users can not open the other files or directories but, I would like these to be hidden to them. I had though that if I took the read away from them they would not be able to read the contents which includes the directory.

Any ideas?

tyler_durden 04-11-2003 05:47 PM

in their bash rc script put the command
chroot homedir

unSpawn 04-11-2003 06:20 PM

Quote:

Originally posted by tyler_durden
in their bash rc script put the command
chroot homedir

Which leaves you with the line "bash: chroot: command not found"...

I'd vote for chrooting ssh users (chrootssh.sourceforge.net) or make 'em use a scp-only shell like scponly (sublimation.org) or rssh (pizzashack.org).


All times are GMT -5. The time now is 09:14 PM.