chroot() uses a certain specified directory as a virtual root directory, usually for security reasons. This means that if a malicious person compromises that process they will only have access to that particular directory and its children.
A good example of a chroot() environment in action is an anonymous FTP server, the setup for which is described on the ftpd man page.
Note that there is also /usr/sbin/chroot which can be used to run another process under a chroot() environment. Annihilannic.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.