> Oops, didn't mean to do that, ok here is the full post..
>> you can make the root something like:
>> DefaultRoot ~/my_ftp_dir # chroot() to their home directory's
>> subdirectory "my_ftp_dir"
> Well the problem is that they should upload their website in the following
> instead of usr/home/username
> First I thought this worked:
> <Virtualhost domain.com>
> DefaultRoot /usr/local/www/vhosts/domain.com ftpusername
> But it doesn't work.
> How can I send each ftp user to it's own webdirectory when he logs in with
> Do I have to create a group for every user?
> I read the docs at proftpd.org, but I couldn't really find what I needed.
> I'm a unix newbie, sorry!
According to the docs, it looks like your plan would work, unless the
group 'ftpusername' doesn't exist (I think it has to be a group). You
don't even really need a group expression, just do:
I think that will work, anyone that logs in to that domain will be restricted to the directory.
Again, I have to ask, why may a user not upload into his home directory? I think I understand what you did, but it is somewhat unusual to have a home directory that is inaccessible to the user. I might suggest changing the user's home to the area in which they should be chroot()ed, or changing their web directory to a subdirectory of their home. That way the 'DefaultRoot ~' will work just fine, and it will allow users the flexibility of using their 'HOME' environment variable (which seems to be used by a lot of software).
Nothing to be sorry about... a unix newbie is infinately better than a unix never-was, and everyone has to learn anyway. I am new to FreeBSD, but have used linux for a while.