Hi
I've got a Debian box that I've installed proftpd using Synaptic.
Anyway I've edited the /etc/proftpd.conf file and uncommented the
section to allow anonymous ftp access. It all seems fine well to the
extent that I can't see anything wrong with it. But when someone tries
to log in with the anonymous user name. The FTP client on their
machine gives back a 530 Login Incorrect error. I've checked through
the docs for proftp and looked at the FAQ's on their website. I've got
the appropriate aliases setup in proftpd.conf also.
If I try logging in with a normal user account e.g. my own one I can
log in just fine. Sorry about the length of this email. Anyone got
any suggestions as to whats going on with the anonymous logins?
Cheers
Rory
Here's the messages from /var/log/syslog
Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain
(192.168.0.12[192.168.0.12]) - FTP session opened.
Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain
(192.168.0.12[192.168.0.12]) - mod_delay/0.4: delaying for 98 usecs
Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain
(192.168.0.12[192.168.0.12]) - no such user 'anonymous'
Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain
(192.168.0.12[192.168.0.12]) - mod_delay/0.4: delaying for 192 usecs
Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain
(192.168.0.12[192.168.0.12]) - FTP session closed.
Here's the /etc/proftpd.conf
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
ServerName "Angelina"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
# Uncomment this if you would use TLS module:
#TLSEngine on
# Uncomment this if you would use quota module:
#Quotas on
# Uncomment this if you would use ratio module:
#Ratios on
# Port 21 is the standard FTP port.
Port 21
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
#DelayEngine off
# A basic anonymous configuration, no upload directories.
<Anonymous /home/ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
AnonRequirePassword off
# Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 10
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
#Uncomment this if you're brave.
#<Directory incoming>
# Umask 022 022
# <Limit READ WRITE>
# DenyAll
# </Limit>
# <Limit STOR>
# AllowAll
# </Limit>
#</Directory>
</Anonymous>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!