ftpd virtual www hosts

Odhiambo Washington odhiambo at gmail.com
Tue Sep 15 05:22:34 UTC 2009

On Mon, Sep 14, 2009 at 7:10 PM, Peasoup <info at 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,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
              -- Lucky Dube

More information about the freebsd-questions mailing list