Default ftp for site admins

By default, and partly as a safety measure, when a site admin ftps in, they will be dumped into the /user/ directory.

Obviously this may cause confusion for those not familiar with server architecture and could result in support calls by those who are unable to understand how to navigate within their ftp client to the root directory.

It is possible for the sysadmin to change the default behaviour, enabling site admins to be placed in siteroot.

This solution provides a workaround, obviously use at your own risk :-)

vi /usr/sausalito/handlers/base/ftp/config_ftp_site.pl


<VirtualHost $ftp_site->{ipaddr}>
    DefaultRoot     / wheel
        DefaultRoot             / $Base::Vsite::SERVER_ADMIN_GROUP
        DefaultRoot             ~/../../.. $Base::Vsite::SITE_ADMIN_GROUP
        DefaultRoot             ~ !$Base::Vsite::SITE_ADMIN_GROUP
        AllowOverwrite  on
        DefaultChdir            /web  # new added


Also add it once to  /etc/proftpd.conf

Save and:

service xinetd restart