LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Restrict ssh/sftp with chroot? (https://www.linuxquestions.org/questions/linux-networking-3/restrict-ssh-sftp-with-chroot-281649/)

Chowroc 01-24-2005 11:07 AM

Restrict ssh/sftp with chroot?
 
I want to make some users to be chrooted when he ssh/sftp. I haven't find these parameters in sshd_config. How can I achieve that?

thanks.

secesh 01-24-2005 11:11 AM

you mean you wanted to let them have root access when they ssh? why not give them the root password, and let them su?

but why would you want to open up your system like that? what are you trying to accomplish?

Chowroc 01-24-2005 11:26 AM

I mean chroot to a certain directory, for example, make /home/USER or /mnt/SSH as the root directory(/) of those users when they ssh/sftp, so they can't chdir(cd) and browse(ls) other directories of the system.

for exmaple, if chroot to /home/USER, they can't:
# cd ../
# ls ../
Because /home/USER is their root dir!

BinaryBob 01-24-2005 07:42 PM

try ...
http://www.debian.org/doc/manuals/se...sh-env.en.html

Chowroc 01-25-2005 10:48 AM

Thank you. I think this is what I want.


All times are GMT -5. The time now is 04:08 PM.