chroot(1m)
_________________________________________________________________
chroot
change root directory for a command
_________________________________________________________________
SYNTAX
/etc/chroot newroot command argument
DESCRIPTION
Chroot executes command relative to newroot. Argument is an
argument to command. After executing chroot, the initial slash
(/) in subsequent pathnames is changed to the new root directory
you specify. Newroot becomes the initial working directory.
The new root is always relative to the current root. If a chroot
is currently in effect (for example, a sh or csh command),
newroot is relative to the current root of the running process,
not the original root (/).
Changing the root for command does not change the root for
chroot. Thus, I/O redirection is relative to the old root
directory.
Only a superuser can use the chroot command.
EXAMPLES
/etc/chroot /usr/alex/test /grep pattern /file1 > grep.out
/usr/alex/test/grep pattern /usr/alex/test/file1 > grep.out
These two lines are equivalent. Note that I/O redirection is
relative to the original root, not the new one.
SEE ALSO
chdir(2), chroot(2).
BUGS
Be careful if you wish to reference special files in the new root
file system. Unless the new root is /dev or you have copies of
the /dev files within the range of the new root, these special
files will be inaccessible.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
chroot(1m)
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)