You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2001/12/11 17:27:28 UTC
Re: chroot .. jail2 || other .pm ?
"dreamwvr@dreamwvr.com" wrote:
>
> hi,
> Was digging around CPAN looking for a module that would
> allow the following..
>
> user is authenticated .. via web.. ok got that..
> If they are successful that are
> chroot or jailed or caged in a specific
> directory which becomes their root..
> eg ..
> $HOME/public_html
> which is ln || lndir to
> /var/www/htdocs/userdomain
well, you can change document_root on a per-request basis using
$r->document_root(), but its a bit hairy (since DocumentRoot is a
per-server attribute and not a per-request attribute). make sure you
understand the full implications of doing so before you tread there...
HTH
--Geoff
>
> That way they get only very limited access to their account..
> They can see their html .. js .. etc files and upload them
> and that is it.. They can't see anything below /var/www/userdomain
> I hope i have been clear and this is the right list to ask modperl
> questions apache related.
>
> TIA
>
> Best Regards