The
chroot command changes its root directory to the supplied directory
newroot and exec's
command, if supplied, or an interactive copy of your shell.
If the
-u,
-g or
-G options are given, the user, group and group list of the process are set to these values after the chroot has taken place. See
setgid(2),
setgroups(2),
setuid(2),
getgrnam(3) and
getpwnam(3).
Note,
command or the shell are run as your real-user-id.