chroot: Change Root Dir

Description Usage Arguments Details References

View source: R/chroot.R

Description

Changes the root directory of the calling process to that specified in path. This directory will be used for pathnames beginning with /. Only a privileged process (i.e. sudo) may call chroot().

Usage

1
chroot(path = getwd())

Arguments

path

directory of the new root

Details

This call changes an ingredient in the pathname resolution process and does nothing else. In particular, it is not intended to be used for any kind of security purpose, neither to fully sandbox a process nor to restrict filesystem system calls.

References

CHROOT(2)


unix documentation built on Jan. 14, 2021, 5:19 a.m.

Related to chroot in unix...