|chroot(2)||change root directory|
|chroot(8)||change root directory|
|CHROOT(8)||System Manager's Manual||CHROOT(8)|
] newroot [
chrootcommand changes its root directory to the supplied directory newroot and executes command, if supplied, or an interactive copy of the user's shell. The
chrootcommand is restricted to the superuser. The options are as follows:
-goption. Additional settings may be applied as specified in login.conf(5) depending on user's login class.
SHELLis interpreted as the name of the shell to execute. If the variable
SHELLis not set, /bin/sh is used.
chrootutility first appeared in 4.3BSD-Reno.
chrootshould never be installed setuid root, as it would then be possible to exploit the program to gain root privileges.
|September 12, 2015||OpenBSD-current|