Operation that changes the apparent root directory in Unix-like systems
chroot
Example usage of chroot in Raspberry Pi OS running an interactive shell within a special root directory
Original author(s)
Bill Joy, AT&T Bell Laboratories
Developer(s)
Various open-source and commercial developers
Initial release
1979; 45 years ago (1979)
Operating system
Unix, Unix-like, Plan 9, Inferno
Platform
Cross-platform
Type
Command
chroot is an operation on Unix and Unix-like operating systems that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally cannot access) files outside the designated directory tree. The term "chroot" may refer to the chroot(2) system call or the chroot(8) wrapper program. The modified environment is called a chroot jail.
term "chroot" may refer to the chroot(2) system call or the chroot(8) wrapper program. The modified environment is called a chroot jail. The chroot system...
the system's actual root directory, but it can be changed by calling the chroot system call. This is typically done to create a secluded environment to...
privileges, use mlockall to prevent swapping sensitive data to disk, enter a chroot jail after initialization, and apply a SELinux context after initialization...
variants. In Unix systems which support chroot process isolation, such as Solaris Containers, typically each chroot environment needs its own /dev; these...
(BS) University of California, Berkeley (MS) Known for BSD • vi • csh • chroot • TCP/IP driver • co-founder of Sun Microsystems • Java • SPARC • Solaris •...
setuid executables explains why the chroot system call is not available to non-root users on Unix. See limitations of chroot for more details. Setting the setgid...
or services. A common example is the use of toolsets to break out of a chroot or jail in UNIX-like operating systems or bypassing digital rights management...
fat client, the root filesystem is not a rudimentary chroot but a full Linux installation as a chroot. The fat client uses LDM to authenticate to the LTSP...
other necessary utilities. Then, the root directory must be changed, (using chroot), to the toolchain's partition to start building the final system. One of...
arbitrary code on the host system with root privileges, just as they can in chroot jails. Starting with the LXC 1.0 release, it is possible to run containers...
operating systems there is an option to further restrict an application using chroot or other means of restricting the application to its own 'sandbox'. For...
example of its use is: SHELL=/bin/sh unshare --map-root-user --fork --pid chroot "${chrootdir}" "$@" "The Use of Name Spaces in Plan 9". 1992. Archived from...
Change mode of listed files. chown — Change owner of one or more files. chroot — Run command within a new root directory. chrt — Get/set a process' real-time...
sudo in a containerized environment. Free and open-source software portal chroot doas runas Comparison of privilege authorization features Miller, Todd C...
This does come with limitations as some emulators utilize PRoot which is a chroot like environment. Unlike terminal emulators that emulate the internal OS...
original on 2017-10-28. Retrieved 2018-01-29. "pmbootstrap: Sophisticated chroot/build/flash tool to develop and install postmarketOS". postmarketOS. 2018-01-27...
runs as a non-privileged user and can be easily configured to run in a Chroot jail, such that security flaws in the NSD daemon are not so likely to result...
superuser access without handing out complete control over the system. Unlike chroot jail, which only restricts processes to a particular view of the filesystem...
but allows full permissions for solutions such as containerization and chroot for user programs requiring root access. The OS natively supports Nvidia...