Is there a chroot build script somewhere?
        Posted  
        
            by 
                Nils
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Nils
        
        
        
        Published on 2012-10-16T11:31:34Z
        Indexed on 
            2012/10/19
            23:07 UTC
        
        
        Read the original article
        Hit count: 279
        
I am about to develop a little script to gather information for a chroot-jail.
In my case this looks (at the first glance) pretty simple: The application has a clean rpm-install and did install almost all files into a sub-directory of /opt.
My idea is:
- Do a find of all binaries
 - Check their library-dependencies
 - Record the results into a list
 - Do a rsync of that list into the chroot-target-directory before startup of the application
 
Now I wonder - ist there any script around that already does such a job (perl/bash/python)?
So far I found only specialized solutions for single applications (like sftp-chroot).
Update I see three close-votes for the reason "off topic". This is a question that arose because I have to install that ancient piece of software on a server at work. So if you still feel this is off-topic - leave a comment...
© Server Fault or respective owner