chroot

From RaySoft

chroot runs a COMMAND with a specified root DIRECTORY. On many systems, only the super-user can do this.[1]

Documentation

Syntax

chroot [PARAMETER ...] DIRECTORY [COMMAND [PARAMETER ...]]

Parameters

--groups=GROUPS
Use this option to override the supplementary GROUPS to be used by the new process. The items in the list (names or numeric IDs) must be separated by commas. Use --groups='' to disable the supplementary group look-up implicit in the --userspec option.
--userspec=USER[:GROUP]
By default, COMMAND is run with the same credentials as the invoking process. Use this option to run it as a different USER and/or with a different primary GROUP. If a USER is specified then the supplementary groups are set according to the system defined list for that user, unless overridden with the --groups option.

References