I came across this problem a few minutes ago. Here's the scenario: You want to give a user access to your system, but don't want them running amock and doing "things." What to do? Give them a restricted shell!
Ports Required:
Build Instructions:
Configuration Stuff
cd /usr/local/bin
#!/bin/sh
/usr/local/bin/bash -r
chmod 700 rbash
echo /usr/local/bin/rbash >> /etc/shells
/usr/local/bin/rbash and you're done.