Various shell scripts to prepare an environment to mainly use unshare
with chroot
to create jails for different *nix based OSes.
- Get paths to allowed commands.
- Copy the commands locally.
- Copy dependencies for the commands locally.
- Create any symlinks that might be needed.
- Depending on OS either:
- unshare -r chroot . bin/sh
- sudo -r chroot . bin/sh
The primary reason for these scripts was to create shells where users couldn't shoot themselves in the foot when learning to use the CLI. All the scripts are similar and vary depending on the nuances of the target OS and contain comments to reflect that.