PDA

View Full Version : SSH chroot type thing?


Jaws
9th August 2004, 02:25 AM
Hey everyone!

I have a question about sshd. I'm running Fedora Core 2, btw.

I managed to successfully chroot users in vsftpd, but now I need to find some way to prevent users from exiting their /home/USER directory. (example, they cant cd to /, the main filesystem dir).

Does anyone know how to do this? Would I need a special type of shell?

By the way I am a linux newbie, so try to explain some of what you are saying. :)

Thanks,

Jaws

Jman
9th August 2004, 04:44 PM
You would need more than a shell. You would need some very basic programs like ls and cd, at the very least.

Found this resource: http://www.debian.org/doc/manuals/securing-debian-howto/ap-chroot-ssh-env.en.html

Jaws
10th August 2004, 12:22 AM

You would need more than a shell. You would need some very basic programs like ls and cd, at the very least.

Found this resource: http://www.debian.org/doc/manuals/securing-debian-howto/ap-chroot-ssh-env.en.html

Hey mate, thank you for that link! Thats exactly what I was looking for!

Cheers,

Jaws