Koozali.org: home of the SME Server

FTP Append/Restart support

SSBN

FTP Append/Restart support
« on: July 02, 2004, 07:21:20 PM »
I have remote backup software that will back up files up from a remote computer to my server via FTP. But from what I can tell SME6.0.1 won't allow Append/Restart of file transfers. Do any of you know how it allows this?

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
Re: FTP Append/Restart support
« Reply #1 on: July 02, 2004, 10:20:39 PM »
Quote from: "SSBN"
I have remote backup software that will back up files up from a remote computer to my server via FTP. But from what I can tell SME6.0.1 won't allow Append/Restart of file transfers. Do any of you know how it allows this?


Take a close look at the fragments in /etc/e-smith/templates/etc/proftpd.conf, in particular 40IBayAccess

You can create a custom fragment which has the

AllowStoreRestart on

directive, which should do it.  For further proftpd.conf options, consult the man page here:

http://support.martnet.com/cgi-bin/man2html?proftpd.conf+5
--
Nick......

SSBN

FTP Append/Restart support
« Reply #2 on: July 02, 2004, 11:15:06 PM »
I could not find the AllowStoreRestart option in
/etc/e-smith/templates/etc/proftpd.conf/40IBayAccess

Can you help me out a bit more? I can create the template when I find the file to modify.

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
FTP Append/Restart support
« Reply #3 on: July 02, 2004, 11:20:34 PM »
Quote from: "SSBN"
I could not find the AllowStoreRestart option in
/etc/e-smith/templates/etc/proftpd.conf/40IBayAccess

Can you help me out a bit more? I can create the template when I find the file to modify.


No, it's not in there by default which is why I said you need to create a custom version of the 40IBayAccess fragment with:

 AllowStoreRestart on

in it.
--
Nick......

SSBN

FTP Append/Restart support
« Reply #4 on: July 03, 2004, 06:10:30 PM »
I understand thanks for the tips.

SSBN

FTP Append/Restart support
« Reply #5 on: July 03, 2004, 08:12:35 PM »
Another non programmer stuck. Here is what I have tried so far. Help me if you can. Thanks

1:I created a dir in /etc/e-smith/templates-custom/etc/proftpd.conf
2: I then copied the 40IBayAccess file their.
3: I then edited it and added
$OUT .= "    AllowStoreRestart on\n";

Here is the whole file

{
# Local access to bay directories. Note that in this context, we can
# ignore the public access rules associated with each bay, since this
# section of the config file applies only to local logins. We can also
# ignore the usepassword rules, since anonymous login is handled
# below.

    use esmith::AccountsDB;

    $OUT = "";

    my $adb = esmith::AccountsDB->open_ro();
    foreach my $ibay ($adb->ibays)
    {
   my %properties = $ibay->props;
   my $key = $ibay->key;
   my $umask = "027";

   if ($properties{'UserAccess'} eq 'wr-admin-rd-group')
   {
       $umask = "027";
   }
   elsif ($properties{'UserAccess'} eq 'wr-group-rd-group')
   {
       $umask = "007";
   }
   elsif ($properties{'UserAccess'} eq 'wr-group-rd-everyone')
   {
       $umask = "002";
   }

   $OUT .= "\n";
   $OUT .= "<Directory /home/e-smith/files/ibays/$key/*>\n";
   $OUT .= "    AllowOverwrite on\n";
   $OUT .= "    AllowStoreRestart on\n";
   $OUT .= "    GroupOwner shared\n";
   $OUT .= "    Umask $umask\n";
   $OUT .= "    <Limit WRITE>\n";
   $OUT .= "        AllowAll\n";
   $OUT .= "    </Limit>\n";
   $OUT .= "</Directory>\n";
    }
}

4: Then I ran /sbin/e-smith/expand-template /etc/proftpd.conf

This is my first time setting up a custom template. So be gentile. I restarted the server but I still can't resume file uploads. Can you help me out NickR.

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
FTP Append/Restart support
« Reply #6 on: July 03, 2004, 10:10:47 PM »
That all looks fine to me - make sure that the resulting  /etc/proftpd.conf has the magic directive in it as well.

You are actually trying to upload to an IBay, right? This fragment will only apply to user IBays, not the Primary.

Just a thought - is it possible that the client doesn't allow resumed uploads?
--
Nick......

SSBN

FTP Append/Restart support
« Reply #7 on: July 03, 2004, 10:55:52 PM »
Thanks for your help NickR.
I changed the ftp default directory to an I-bay and everything works fine.

Muzo

FTP Append/Restart support
« Reply #8 on: July 05, 2004, 10:18:53 AM »
Hi all,

ftp-manager contribs allows you to control this stuff.

ethyl72

FTP Append/Restart support
« Reply #9 on: July 07, 2004, 03:07:01 PM »
Quote from: "Muzo"
Hi all,

ftp-manager contribs allows you to control this stuff.

Hi Muzo, I'm trying to access to your website but it's unreachable. Where can I find ftp-manager?