How can you prevent users from leaving a directory?
AFAIK, there’s no way to without modifying the system tools and shell.