THANK YOU!!
New problem
Using your script and my own bash script I have it automatically copy the required files for perl and python, about 25 MB into a clients home directory, We have about 100 clients per box, so the 2.5 G isn't a big loss for the complete security we can now offer.
My problem is with the Wrap arguments. Since a client may have multiple domains under his 'new root' I can not get the Wrap command to use the '/' of the new root for cgi requests. Explanation:
I tried:
Wrap = admin_wrapper;/home/admin|;admin:admin
In theory, all files under that chroot should work? But error.log always says 'CGI not in WebSite root'.
Tried
Wrap = admin_wrapper;/home/admin|/;admin:admin
Wrap = admin_wrapper;/home/admin|./;admin:admin
Wrap = admin_wrapper;/home/admin|../;admin:admin
Always same error. CGI not in website root
How to do this?