LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



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

Rep: Reputation: 15
what is chroot ?


hi,

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.

Thanks,
 
Old 05-02-2004, 03:50 PM   #2
slakmagik
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, 04:24 AM   #3
sixth_sense
Member
 
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.

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

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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, 08:58 AM   #5
sixth_sense
Member
 
Registered: Mar 2004
Distribution: RedHat
Posts: 99

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


Reply


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-25-2013 12:32 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
chRoot SpaceCadet Linux - Networking 3 08-14-2003 06:29 AM
Chroot chamkila Linux - General 1 06-13-2003 06:46 AM
Better than chroot? radnix Linux - Security 5 12-20-2002 07:55 PM


All times are GMT -5. The time now is 11:03 AM.

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