How can you prevent users from leaving a directory?
chroot, and override exit with an alias,could work