man chroot. Don't forget to provide links to binary files if you have any intentions of letting your users actually run things.