Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is chroot system call

Status
Not open for further replies.

froggger

MIS
Apr 2, 2003
34
CA
What is chroot system call
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top