From owner-freebsd-questions@FreeBSD.ORG Tue Sep 15 05:22:34 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7C31106566B for ; Tue, 15 Sep 2009 05:22:34 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id 3A8A38FC15 for ; Tue, 15 Sep 2009 05:22:34 +0000 (UTC) Received: by bwz2 with SMTP id 2so2400770bwz.43 for ; Mon, 14 Sep 2009 22:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=6kyNQu5lH1G+RDXrWKWd40bcmaYfbOxGP8el4yG53tU=; b=ZZmXPqKafV6VjJIxXQ89aVfAhWpprUkFNOrTp0zb98OrKmdx9nBWvUvOz40TuCmSnt 8RDBMX6jxyK/WHjbqStQMQgLRX0xmt4VToqXwNqbCEWormAVEQeU5CvQofOqY/0Felpi GjEnZ8Ucc/cCDEvv6oxSL2B8VTa948v09DUQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=m7cPblO1h4zM/VyHNYZRDgdLqOWUg6zNM3GQXyzGeOKutB5QQniXr6OyCDDQEJYoZr xGXo7perVL1vDwlMXykdOI9WSr6JQHKheHqcNT+vEk1GrXFQsCA+sLs3m1K6U0C/av8q W455zirh1s4D4E1b7YKIs2odVCNa21dMft5O8= MIME-Version: 1.0 Received: by 10.204.161.204 with SMTP id s12mr5863024bkx.26.1252992153185; Mon, 14 Sep 2009 22:22:33 -0700 (PDT) In-Reply-To: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> References: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> From: Odhiambo Washington Date: Tue, 15 Sep 2009 08:22:13 +0300 Message-ID: <991123400909142222q7c27578ct6d94bda2a3f6a1ad@mail.gmail.com> To: Peasoup Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: ftpd virtual www hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2009 05:22:34 -0000 On Mon, Sep 14, 2009 at 7:10 PM, Peasoup wrote: > Hi > > Im new to the list, hope I have the right one, but if not, please let me > know. And forgive me if I don't speak clear unix. > > I am trying to set up a webserver, with virtual hosting accounts. > Naturally, I want to be able to give users the ability to upload files to > their web directories. > > Setting up basic ftp is not an issue for me. I can set up a user at > /usr/home/, and can upload via ftp just fine. Of course that directory > is owned by user:user. I also get ftpchroot just fine. > > Next I go to vipw to change the user's home dir to something in the www > area, which is owned by www:www. This is where my problems start with being > denied. I am assuming that uploading to the unprivileged user www is getting > in my way. > If you have virtualhost A, with DocumentRoot /usr/local/www/apache2/data/siteA/htdocs, then set the home directory for the user who uploads to this path during user creation. chroot them to this path as well. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube