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.