Gaby vanhegan wrote:
On 19 May 2006, at 20:59, Nick Guenther wrote:
Would hardlinking /home into /var/www/home help? I don't know all the
details of chroot so I don't know if this would work.
The basic premise is that each user has a websites folder that all
their sites are in. For example, we would have /home/testuser/
websites in a user's directory, and /var/www/sites/www.x.com in
apache's chroot. Is it then possible to hard-link from the chroot
into the home directory of the user, and that user still be able to
access their files from a chrooted ftp server (such as the built-in
one) or from an scp client?
As far as I understand it, that's the point of chrooted the httpd stuff.
You can't get out of it even with hard-link. What would be the point of
it if you could right?
It's chrooted to /var/www and it stay there. Anything you want httpd to
access needs to be under that.
If you don't want that use -u for starting it, but I wouldn't do that.
Change your home directory to the /var/www, or may be link from home to
var/www, not the reverse.
Just a thought.
Daniel