home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] chroot -- can somebody help me out?



Sam Noble wrote:
> On Thu, 2004-12-16 at 10:15 -0700, Jody Harris wrote:
>>Maybe I just don't have the system configured correctly, or maybe I'm 
>>taking the whole wrong approach....
>>
>>I'd like to: run Firefox in a chroot jail
>>
>>How?
>>
>>man chroot --> look at the info page
>>
>>info coreutils chroot --> not much more help.
>>
>>Am I going to have to install Gentoo and make everything statically linked?
>>
>>No matter what directory I select as the new root, I get the same 
>>message, "cannot change root directory to /my/path: Operation not permitted"
>>
> 
> On a Debian system you:
> 
> $ mkdir ~/choot-jail
> 
> # apt-get install debootstrap
> 
> # debootstrap woody ~/chroot-jail
> 
> # chroot ~/chroot-jail

Thanks, Sam.

I "installed into a directory" using YaST (SUSE 9.2).  In this case, I 
took the suggested dir of /var/tmp/dirinstall.

Once that was done, I had to su to root, then I could run 'chroot 
/var/tmp/dirinstall/'

Viola!  I was in a new virtual Linux box, logged in as root, setting at 
the bash prompt, in the new virtual root.

pretty cool, but I still don't know enough for it to be useful.

I was thinking about running that tinyp2p in a chroot jail.  There are 
lots of other things I'd like to have the option of jailing as well. 
Finally, there are things I'd like to be able to do the setup/tear down 
routine until I get the setup part mastered.

Anybody use chroot for anything?

j

-- 
http://www.RealizationSystems.com/ -- start communicating
http://www.GalacticSlacker.com/ -- read it and weep
http://www.NMPerspective.com/ -- a Southwest Perspective



Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache