I am using a custom template
/etc/e-smith/templates-custom/etc/proftpd.conf/60AnonymousIBay
contents:
{
#------------------------------------------------------------
# How to handle logins from information bay accounts: chroot to the
# files part of the information bay directory.
#------------------------------------------------------------
my %accounts;
tie %accounts, 'esmith::config', '/home/e-smith/accounts';
my $key;
my $value;
$OUT .= "";
while (($key,$value) = each %accounts)
{
my ($type, %properties) = split (/\|/, $value, -1);
if ($type eq 'ibay')
{
#------------------------------------------------------------
# Figure out which combination of parameters to use. If
# PublicAccess parameter is present, this is e-smith 4.0.
# Otherwise, it's e-smith 3.0.
#------------------------------------------------------------
my $allow;
my $pass;
if ($properties{'PublicAccess'})
{
if ($properties{'PublicAccess'} eq 'none')
{
$allow = "127.0.0.1";
$pass = 1;
}
elsif ($properties{'PublicAccess'} eq 'local')
{
$allow = $localAccess;
$pass = 0;
}
elsif ($properties{'PublicAccess'} eq 'local-pw')
{
$allow = $localAccess;
$pass = 1;
}
elsif ($properties{'PublicAccess'} eq 'global')
{
$allow = 'all';
$pass = 0;
}
elsif ($properties{'PublicAccess'} eq 'global-pw')
{
$allow = 'all';
$pass = 1;
}
elsif ($properties{'PublicAccess'} eq 'global-pw-remote')
{
$allow = 'all';
$pass = 1;
}
}
elsif ($properties {'ReadAccess'} eq 'global')
{
if ($properties {'UsePassword'} eq 'yes')
{
$allow = 'all';
$pass = 1;
}
else
{
$allow = 'all';
$pass = 0;
}
}
else
{
if ($properties {'UsePassword'} eq 'yes')
{
$allow = $localAccess;
$pass = 1;
}
else
{
$allow = $localAccess;
$pass = 0;
}
}
# variables: $allow (IP), $pass (bool)
$OUT .= "\n";
$OUT .= "
\n";
$OUT .= " User $key\n";
$OUT .= " Group $key\n";
$OUT .= " AnonRequirePassword " . ($pass ? "on" : "off") . "\n";
$OUT .= " UseFtpUsers on\n";
$OUT .= " MaxClients 10\n";
$OUT .= " DisplayLogin welcome.msg\n";
$OUT .= " DisplayFirstChdir .message\n";
$OUT .= "
\n";
$OUT .= " Order Allow,Deny\n";
$OUT .= " Allow from $allow\n";
$OUT .= " Deny from all\n";
$OUT .= " \n";
$OUT .= "
\n";
$OUT .= " \n";
$OUT .= " AllowAll\n";
$OUT .= " \n";
$OUT .= " \n";
$OUT .= "\n";
}
}
}
next:
/sbin/e-smith/expand-template /etc/proftpd.conf
and it should work too. by setting ibay to public access over internet.
little warning. I am not aware if there are any changes in the proftpd.conf template compared to sme server 6.0. This template was once made for 5.x if i am not mistaken. still seems to work fine here, but no garuantees.