<<
<<
<< I dont think Apache does this by default, but setting up a chroot environment might also be a good idea.
Yes but then you have to move all the dependencies in there too, like if your scripts use perl, you have to have another perl installation down there. It's easy to chroot things like ftp and bind because they have few external dependencies, doing it to Apache would probably be more trouble than it's worth. >>
BIND I believe includes chrooting availble by default. Apache can be done, but its not easy. Thanks for clearing that up 🙂 >>
in openbsd both bind and apache are chrooted by default. apache is started under the user/group www 🙂 at least thats what ps tells me 🙂 >>
I know BIND is chrooted by default (set it up at home to work on my BIND skills), but apache is not. It starts as root, binds to port 80, and drops down to uid/gid www. Its not actually chrooted, although I saw an article fairly recently about chrooting it I think. Too much work for me right now (in the middle of everything else), but if you really want to secure the system as well as possible (and you arent on a multi-user system requiring user sites) chrooting would be a nice thing to play with atleast.