Hi, Thank for your mail.
What's the problem? You don't want a user to be able to read files which
it Sorry for my bad expression. Users have no shell.They can just upload their html or cgi file via ftp and browse it via http. I want the virtual host's user can only read the file under their home directory.otherwise,it should be a big problem.one virtual host's user can read any another virtual host's user's cgi's source code by writing a simple script. I want to ask,Is it possible to chroot each virtual host?
No. You chroot an application, you can't chroot parts of it. Please read:
http://perl.apache.org/docs/general/multiuser/multiuser.html#ISPs_providing_mod_perl_services___a_fantasy_or_a_reality
If your users can't be trusted to mess up with each other's files, you can't use the same server. You will have to run a separate instance of a server for each user.
Once Apache 2.0 completes the perchild mpm, it'll be possible to run virtual hosts under different user/group names. So far the status of this mpm is in limbo. Noone seems to be interested in developing it. You may try to ping the httpd-dev list and ask whether someone has the desire to finish it.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html