chroot and user home directories?

From: LRW (deja_at_celticbear.com)
Date: 03/16/04


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
that.
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:
http://www.linuxsecurity.com/docs/www-security-faq/wwwsf3.html#SVR-Q5
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?
Thanks!
Liam



Relevant Pages

  • Re: apache question
    ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # configuration directives that give the server its instructions. ... Directives that control the operation of the Apache server process as ...
    (alt.php)
  • Re: Apache vs IIS
    ... Windows Server not on my Linux Server so there for I would chose IIS. ... Not that Apache is bad but ASP.NET is far easier and faster to create good web forms in. ... PHP on a IIS server is rather easy to run once you install PHP on a PC but if you only use PHP why not use Apache for Windows. ...
    (alt.php)
  • Re: HTTP servers on z/OS
    ... developed by the Apache Software Foundation. ... Also know as IHS ... "...the current IBM HTTP Server for z/OS and IHS for z/OS Powered by Apache, ...
    (bit.listserv.ibm-main)
  • Re: Apache and SSL
    ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # This is the main Apache server configuration file. ... # configuration directives that give the server its instructions. ...
    (RedHat)
  • Re: webalizer
    ... I'm trying to get webalizer and apache working together. ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # configuration directives that give the server its instructions. ...
    (freebsd-questions)