|
I did
something similar with telnetd by hacking login to accept an option that
specified a directory to chroot to and specifying it via telnetd "-L"
option. I suppose the same thing would work with ssh if you compiled with
the "--with-login" option. Let me know if you'd like the (admittedly
trivial) patch for login.c.
Dave LaPorte
|