Date: Tue, 15 Sep 2009 08:22:13 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: Peasoup <info@peasoup.com> Cc: freebsd-questions@freebsd.org Subject: Re: ftpd virtual www hosts Message-ID: <991123400909142222q7c27578ct6d94bda2a3f6a1ad@mail.gmail.com> In-Reply-To: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> References: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 14, 2009 at 7:10 PM, Peasoup <info@peasoup.com> 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/<user>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?991123400909142222q7c27578ct6d94bda2a3f6a1ad>