Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-02-2004, 02:45 PM   #1
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Rep: Reputation: 15
what is chroot ?


on some documentation i m getting a word "chroot" "chroot in jail" - what is these ? I really wanna know. I tried man chroot but didn't understand anything.

plz clearfy me.

Old 05-02-2004, 02:50 PM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
This may not be the most brilliant explanation, but it'll probably do: chroot CHanges the ROOT to a subdirectory of the actual root directory, preventing you from accessing anything outside it. (It has other uses, but it's still a similar concept.)
Old 05-03-2004, 03:24 AM   #3
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks ;

so; the concept like, forwarding someone to a perticular sub directory...simulating like its the root directory.. huh ?? Any idea about "in jail"

Actually i got them on postfix documentation.

Old 05-03-2004, 04:04 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
If you had to repair your linux installation, and booted up with a rescue boot disk, you could use chroot to change from the present root directory in ram disk to the disk partition that is normally your root directory.

Another use is to run services like apache from a different root. This way, if it crashes, your system isn't exposed. The new root dir will contain a scaled down copy of the system heirarchy. Just what is needed to run the service but no more. You may also use the --restricted option for the bash shell.
Old 05-03-2004, 07:58 AM   #5
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks for the information. ill knock again for any further assistance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot help Smokey Slackware 15 02-24-2013 11:32 PM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
chRoot SpaceCadet Linux - Networking 3 08-14-2003 05:29 AM
Chroot chamkila Linux - General 1 06-13-2003 05:46 AM
Better than chroot? radnix Linux - Security 5 12-20-2002 06:55 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration