Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



I need help with Chroot

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-06-2011
Member
 
Join Date: May 2011
Posts: 147
I need help with Chroot
  

I need some help with chroot command. I have some programs to test, and for that this is the first time I am opting to run this program. I need help to understand some syntax of the same. What are other options I can try and how does this work. I still do not understand the basic of this command. This is best for understanding the stability of certain program running under servers and perform some actions.

Reply With Quote
  #2  
Old 02-06-2011
Member
 
Join Date: Apr 2010
Posts: 124
Re: I need help with Chroot

The chroot command with root privileges to run. The general call for the same is as follows : chroot directory command. chroot is a UNIX command that allows you to run a process under a simulated root, so the process can not access files outside that directory. The same is mainly used for two things. The first is to test software or dangerous suspects in a secure environment. For example, to install unstable program in a stable machine without interfering with the primary environment and second to cage a network service like an a web server. So that limits its environment of the service and access only what you owe, preventing access scale.
Reply With Quote
  #3  
Old 02-06-2011
Member
 
Join Date: Apr 2009
Posts: 990
Re: I need help with Chroot

You can use chroot and by running the same you must understand some stuff. First that in chroot only root can execute. The chroot directory should include the directory structure which is an typical structure of a UNIX system and all files and libraries needed to run command, including the command itself. Once when you enter the chroot the available hangs files in the directory. In contrast from the main interface are accessible all files in the chroot.
Reply With Quote
  #4  
Old 02-06-2011
mv mv is offline
Member
 
Join Date: May 2008
Posts: 681
Re: I need help with Chroot

There is way to install the chroot environment that will use debootstrap. For that first you will need to create the directory for the chroot environment. For that you will need to run # Mkdir / usr / local / chroot for creating the directory. Although the main intention here is to install unstable program and it is preferable to install first stable and then upgrade to unstable. For that you will need to run # Debootstrap etch / usr / local / chroot to choose the appropriate version of Debain to run.
Reply With Quote
  #5  
Old 02-06-2011
Member
 
Join Date: Nov 2009
Posts: 681
Re: I need help with Chroot

There are certain parameters that you will need to understand when you use the same. I had posted some sample with the commands that will help you to get results. first the # Mount proc / usr / local / chroot / proc allows you to mount proc virtual directory. # Chroot / usr / local / chroot and get a shell as root. The program is actually executed is / usr / local / chroot / bin / bash, and believes that / usr / local / chroot is the root directory /.
Reply With Quote
  #6  
Old 02-06-2011
Member
 
Join Date: May 2008
Posts: 991
Re: I need help with Chroot

I can help here, how to install programs in the chroot. What is installed with debootstrap is a basic system, with a few boxes, so you usually will need to install more in the chroot. To this end, we as in the primary environment: # Apt-get install package. Before you configure the software sources by editing / etc / apt / sources.list chroot environment. You can install X in chroot environment and run them on a free terminal: # Chroot / usr / local / chroot will let you to get in the chroot.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "I need help with Chroot"
Thread Thread Starter Forum Replies Last Post
How to run debian without chroot on Lacie Network Space 2 Love-Day Networking & Security 8 05-05-2012 10:03 AM
How to install gentoo on Android chroot Virr Operating Systems 6 30-05-2011 08:06 PM
Does file not found error is due to chroot Oms-waroop Operating Systems 5 18-01-2011 12:26 AM
Chroot in kde debian Vodka Windows Software 5 19-02-2010 01:08 AM


All times are GMT +5.5. The time now is 10:50 AM.