CHROOT for shell script testing

Posted by Josh on Server Fault See other posts from Server Fault or by Josh
Published on 2010-06-01T13:24:49Z Indexed on 2010/06/01 13:34 UTC
Read the original article Hit count: 264

Filed under:
|
|
|

I am looking at setting up a shell script in order to properly document and automate the process I am using to setup a few servers we have. In order to test the shell script through its different stages I was thinking a CHROOT would be ideal, since I can wipe out the "virtual root" and create it on the fly. I have never used CHROOT before, however.

I was just curious what are the exact steps I would need to follow to implement this process of creating a chroot (with the basic core functions that would be needed to install apache/php/etc.)? and then destroying it?

© Server Fault or respective owner

Related posts about linux

Related posts about apache