Koozali.org: home of the SME Server

Re: user ftp rootdir = username/home

Charlie Brady

Re: user ftp rootdir = username/home
« on: July 27, 2000, 11:33:57 PM »
On 27 Jul 2000, Hasan Muhammad wrote (to the Wishlist forum):

> When users access their file directory via Windows they are directed
> to /home/../../username/home and they don't see the mail folders.
>
> When users access their file directory via ftp://username@domain.com
> they are directed to /home/../../username and they do see the mail
> folders.  I wish they would be directed to /home/../../username/home.
>
> Anybody know a quick work-around?

Yes, you should customise your system so that it suits your requirements. There is documentation to help you do this at http://www.e-smith.org/custom/.  Please note that the documentation is now slightly out of date, and is being rewritten. In the meantime, I will give you the relevant differences here.

The template which you wish to modify is the template for /etc/proftpd.conf, which is found in the two files template-begin and template-end in the directory /etc/e-smith/templates/etc/proftpd.conf.

To modify the template, create a directory /etc/e-smith/templates-custom/etc/proftpd.conf, and copy template-begin and template-end into that directory. Now edit those files, and use the command:

/sbin/e-smith/expand-template /etc/proftpd.conf

to instantiate the template, and install your newly customised proftpd configuration.

The templates-custom directory heirarchy has been added to preserve your custom modifications if you upgrade RPMS in your e-smith system, and to allow you to verify the integrity of your e-smith RPMS, and to allow you to quickly visualise your customisations ("diff -ru /etc/e-smith/templates*/etc/proftpd.conf/").

I hope this helps you and others who desire to customise their system.

regards

Charlie

Hasan Muhammad

Re: user ftp rootdir = username/home
« Reply #1 on: July 28, 2000, 02:25:59 AM »
Modify the file in what way?

I tried changing



to



(and even rebootining) and it didn't work.

Thanks

Hasan

Hasan Muhammad

Re: user ftp rootdir = username/home
« Reply #2 on: August 02, 2000, 04:05:33 AM »
The following modifications seem to be working:

in /etc/proftpd.conf

change the line (near the top)

DefaultRoot  /home/e-smith/files
to
DefaultRoot ~

Add the following line beneath it

DefaultChdir  home



Hasan