On Mon, Jan 13, 2003 at 08:43:29AM +0530, Amish Munshi wrote:
Hi,
Is it possible to chroot a user who does an ssh into the server to his own home directory?
Have a look at pam_chroot
Of course, you have to set up the system to support chroots into the target directories.
A dirty hack could be to replace the default shell to something which chroot-s and then execs a shell there. Take care of security matters.