Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (25 loc) · 1.06 KB

README.md

File metadata and controls

28 lines (25 loc) · 1.06 KB
  • Can be used as chroot replacement
  • To run app with different filesystem view
  • As sudo sideroot -u 0 -g 0 -- whoami
Usage:
 sideroot [options] -- [<program> [<argument>...]]

Options:
 -r <root-dir>    Change root directory.
 -d <ch-dir>      Set working directory inside chroot (defaults to /).
 -u <uid>         Change user inside chroot.
 -u <uid>         Change group inside chroot.
 -b <src<:<dst>> Bind <src> to <root-dir>/<dst>.
                       Multiple instances allowed.
 -E               Start with empty environment.
 -e <name>=<val>  Set environment variable <name> to <val>.
                       Multiple instances allowed.
 -h               Display this help.
 --chroot         Shortcut for --proc --sys --dev --devpts.
 --proc           Mount proc filesystem to /proc.
 --sys            Mount sysfs filesystem to /sys.
 --dev            Mount devtmpfs filesystem to /dev.
 --devpts         Mount devpts filesystem to /dev/pts. Implies --dev.
 --run            Mount tmpfs filesystem to /run.
 --tmp            Mount tmpfs filesystem to /tmp.