chroot and user home directories?
From: LRW (deja_at_celticbear.com)
Date: 16 Mar 2004 13:38:25 -0800
We're setting up a new RedHat ES2.1 server and migrating the old web
server to it.
The old server, they have set up to have Apache use the /home
directory as the HTTPD home directory. And new virtual directories,
sites we host, get a subdirectory and an entry in httpd.conf, and a
user account to be able to FTP into their directory (and not able to
move up out of it.)
Now, I want to leave the new server's Apache root in its default
location: /var/www/html and then folders for additional sites under
But, how do we make it so that user accounts we create for those
hosted sites have their home in their instead of /home?
So, /var/www/html/subfolder instead of /home/subfolder will be the
user's root or "/" folder?
Someone somewhere mentioned chroot, but I read the MAN, looked it up
in "Linux in a Nutshell", and read some sites I found like:
And I must be an idiot, yes I am, because I can't quite suss how it
can be used in this situation.
Any suggestions? Clue-by-fours?