From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Understanding chroot

Understanding chroot - Linux Tutorial

From the course: Linux Tips

Understanding chroot

- [Instructor] Chroot or change root is a tool that starts a process using a given root directory, different than the systems root. Processes running inside a chroot are isolated from the rest of the file system in the sense that they can't access files that are outside their confined space. This can be useful for troubleshooting, and for running a process in a space that's separated from the rest of the file system. It can be used for some security purposes, or for providing a clean environment for building software. However, chroot isn't intended to be used for complete security isolation. Using chroot, you can specify the path to a directory that will act as the root directory for the process. Being the effective root of a new environment, when you run a process in a chroot, you'll also need to either have whatever tools or programs you'll already use inside whatever the target root path is, or provide links to those…

Contents