rush

Restricted shell that limits user capabilities for enhanced security

brewmacoslinux
Try with needOr install directly
Source

About

GNU's Restricted User SHell

Commands

rush

Examples

Start an interactive restricted shell session$ rush
Execute a single command in restricted mode$ rush -c 'echo Hello World'
Run a script with restricted shell permissions$ rush -f script.sh