chroot: Change Root Dir

View source: R/chroot.R

chrootR Documentation

Change Root Dir

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

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 Oct. 18, 2022, 5:07 p.m.

Related to chroot in unix...