Chroot to jail users into a directory [closed]

view story

http://serverfault.com – Possible Duplicate: How can I chroot ssh connections? I want to jail a particular user into a directory (so they can sftp and ssh) using chroot on Debian. How can I do this? The man page says Usage: chroot [OPTION] NEWROOT [COMMAND [ARG]...] or: chroot OPTION Run COMMAND with root directory set to NEWROOT. --userspec=USER:GROUP specify user and group (ID or name) to use --groups=G_LIST specify supplementary groups as g1,g2,..,gN --help display this help and exit --version output version information and exit I want to jail user "smart" into /home (HowTos)