chroot in Mac OS X

By: Strauss K Viewed: 153255 times  Printer Friendly Format    


change the root directory to the supplied directory newroot and exec command, if supplied, or an interactive copy of your shell.

Syntax
      chroot [-u -user] [-g -group] [-G -group,group,...] newroot [command] [ARGS]

Options
   -u   Set the USER to user after the chroot has taken place.

   -g   Set the GROUP to group after the chroot has taken place.

   -G   Set the Group List to group(s) after the chroot has taken place.

The following environment variable is referenced by chroot:

SHELL If set, the string specified by SHELL is interpreted as the name of the shell to exec.
If the variable SHELL is not set, /bin/sh is used.



Most Viewed Articles (in macos )

Latest Articles (in macos)

Comment on this tutorial