30 lines
709 B
Plaintext
30 lines
709 B
Plaintext
{
|
|
#------------------------------------------------------------
|
|
# How to handle anonymous FTP logins: chroot to the Primary
|
|
# i-bay files directory.
|
|
#------------------------------------------------------------
|
|
return "" if ($ftp{DisableAnonymous} || 'no') eq 'yes';
|
|
|
|
$OUT = << 'EOF';
|
|
<Anonymous /home/e-smith/files/ibays/Primary/files>
|
|
User public
|
|
Group public
|
|
UserAlias anonymous public
|
|
UserAlias ftp public
|
|
AnonRequirePassword off
|
|
UseFtpUsers on
|
|
MaxClients 10
|
|
DisplayLogin welcome.msg
|
|
DisplayChdir .message
|
|
<Limit LOGIN>
|
|
AllowAll
|
|
</Limit>
|
|
<Directory *>
|
|
<Limit WRITE>
|
|
DenyAll
|
|
</Limit>
|
|
</Directory>
|
|
</Anonymous>
|
|
EOF
|
|
}
|