Re: Apache and home directories (file browser).

From: Lewis Thompson (purple_at_lewiz.net)
Date: 02/16/04

  • Next message: Juan Jose Sanchez Mesa: "RE: Apache and home directories (file browser)."
    Date: Mon, 16 Feb 2004 21:44:38 +0000
    To: Shawn Mitchell <shawnm@iodamedia.net>
    
    
    

    On Mon, Feb 16, 2004 at 02:05:44PM -0600, Shawn Mitchell wrote:
    > Their going to be logging in via a web interface (via HTTPS). From
    > there they can upload files, delete, rename, etc, through their web
    > browser.

    Yes -- this is what I wanted :)

    > Since all the files will have to be owned by the web services user
    > (apache, wwwrun, nobody, whatever) so that the "legit" file management
    > software can write/read/etc them, any software installed by Joe User,
    > will have the same type of access.

    This is also the worry I had. I've currently got Apache setup with
    safe_mode enabled (but only for public_html dirs because I control the
    rest of the scripts).

    > Basically what he's asking, is how do you chroot VHOST's in apache.
    > So that one vhost, can not access another vhosts files.

    I think this is what I'm looking for, yes. Since I posted this I asked
    some questions on IRC and somebody mentioned that Apache can be chrooted
    to the uid of a script's owner (similar in a way to safe_mode in PHP).
    This would surely then allow files to be read/written by Apache in a
    secure fashion.

      My worry here is that Apache would have to be running as root to
    chroot -- can anybody confirm this for me? (Indeed, can anybody confirm
    that it is even possible to do this?)

      Thanks very much,

    -lewiz.

    -- 
    I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.
    ------------------------------------------------------------------------
    -| msn:purple@lewiz.net | jabber:lewiz@jabber.org | url:www.lewiz.org |-
    
    



  • Next message: Juan Jose Sanchez Mesa: "RE: Apache and home directories (file browser)."

    Relevant Pages

    • chrooted apache 2 on AIX - Killed
      ... I am setting up a chroot environment for apache (IBM IHS 2.0.47.1) on ... and exit code ...
      (comp.unix.aix)
    • chrooted apache 2 - Killed
      ... I am setting up a chroot environment for apache (IBM IHS 2.0.47.1) on ... and exit code ...
      (AIX-L)
    • Re: Mailman with Apache 2 on Sarge
      ... With your help I was able to sort out my Apache problems. ... I've set it up with Postfix using directions in ... I can't get the web interface to ... To UNSUBSCRIBE, email to debian-user-REQU...@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: apache mod_ssl chroot problem
      ... I have problem running apache in chroot mode with ssl enable. ... Apache/2.2.6 mod_ssl/2.2.6 (Pass Phrase Dialog) ... Some of your private key files are encrypted for security reasons. ...
      (freebsd-questions)
    • Re: PHP writing to /etc
      ... "Peter Simpson" wrote in message ... > I'm trying to set up a simple web interface to maintain the rules ... > This entails writing to at least one of several root-owned files in ... > files when apache is running as www-run.nobody? ...
      (comp.lang.php)