chressh is a restricted shell intended for use with SSH.
It chroot()s the user's home directory and executes one of only a
handful of commands. Please read the comments in the chressh source
chroot-sftp is the original, 30-line concept
SFTP-only shell upon which chressh is based.