LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to set user's root directory in SSH? (https://www.linuxquestions.org/questions/linux-software-2/how-to-set-users-root-directory-in-ssh-221602/)

nyy 08-24-2004 02:41 AM

How to set user's root directory in SSH?
 
I created the user for ssh access.
I want this user to only be accessed to his/her home directory.

I did set /etc/passwd like:

ftp_user:x:111:111::/home/user/public_html/./:/bin/bash

But no luck.

Any advise?

Thanks,

acid_kewpie 08-24-2004 03:45 AM

you'll want to use a chroot jail to only let them see their own directory. check the manpage and howto's for chroot.

Cerbere 08-24-2004 07:07 AM

And try here: http://chrootssh.sourceforge.net/index.php

Enjoy!
--- Cerbere

[edit] And Welcome to LQ.org! [/edit]


All times are GMT -5. The time now is 12:21 PM.