Index: [Article Count Order] [Thread]

Date:  Wed, 17 Jun 2009 14:48:31 -0700
From:  "Michael Aronoff" <ma (at mark) ciic.com>
Subject:  [coba-e:15702] Re: Using dreamweaver to ftp files to/from site
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <005a01c9ef95$5d20dc50$176294f0$@com>
In-Reply-To:  <4A395AAF.40506 (at mark) probass.com>
References:  <30BDDF5E74C246C2981FA58FBE40E332 (at mark) raqware> <4A395AAF.40506 (at mark) probass.com>
X-Mail-Count: 15702

Gerald Waugh wrote:
> Hi Blues,
>
> I have a client using dreamweaver and he is not able to configure 
> Dreamweaver to access the sites main web directory.
> I tried to help him, but seems as though he was unable to get from the 
> siteadmin users directory to the sites main web directory.
>
> Any ideas on what I might tell him
>
> Gerald
There is a MUCH easier way to deal with this.

I do a lot of tweaks when I setup a new BQ server.  Step 32 is as follows:

Change /usr/sausalito/handlers/base/ftp/config_ftp_site.pl to have ftp login
to site folder.
	and add the third line below the other 2 shown.
	DefaultRoot             ~ !$Base::Vsite::SITE_ADMIN_GROUP
	AllowOverwrite  on
	DefaultChdir            /web  # new added
	service xinetd restart

The DefaultChdir part makes it so when a site admin logs in the SERVER
automatically changes them to the correct web folder.

For IPs that are already set on your server you will need to edit
/etc/proftpd.conf and make each ip entry look like the following: (the line
"DefaultChdir            /web" is added)
<VirtualHost XXX.XXX.XXX.XXX> 
    DefaultRoot     / wheel 
        DefaultRoot             / admin-users
        DefaultRoot             ~/../../.. site-adm
        DefaultRoot             ~ !site-adm        
        AllowOverwrite  on                                  
        DefaultChdir            /web
        DisplayLogin    .ftphelp    
</VirtualHost>

I hope that helps someone.
________________________________
Michael Aronoff - West Hills, CA