Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, I've searched this forum and I've searched the web. I don't see anything wrong with my ftp server, but it will not allow anonymous connections.
I can log in as an authenticated user, but when I try to log in anonymously, I get the following error:
Resolving host name domain.com...
Connecting to (domain.com).
Connected to (domain.com) -> IP: 0.0.0.0 PORT: 21.
Socket connected waiting for login sequence.
220 ProFTPD 1.2.7 Server [0.0.0.0]
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS (hidden)
530-Unable to set anonymous privileges.
530 Login incorrect.
Cannot login waiting to retry (30s)...
Obviously, my ip really isn't 0.0.0.0. I can log in just fine as an authenticated user. There is a ftp user and group. The ftp user doesn't have a password. Here's my config file:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "FTP Server"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
PassivePorts 2120 2300
MasqueradeAddress 0.0.0.0
# Allow users ftp access without giving them console/ssh/telnet acccess
RequireValidShell off
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Time user can be idle (7200 = 2 hours)
TimeoutIdle 7200
TimeoutStalled 7200
TimeoutNoTransfer 7200
# Set the user and group under which the server will run.
User nobody
Group nogroup
DisplayLogin /etc/ftp.msg
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# 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
UserDirRoot on
# Limit the maximum number of anonymous logins
MaxClients 10
# Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
<Limit READ>
AllowAll
</Limit>
</Directory>
</Anonymous>
I'm simply lost. I've stared at this file for hours, and have no idea why it is failing. I'm running on Mandrake 9.0 with ProFTPd 1.2.7, and I know the version that comes w/ mandrake includes a proftpd-anonymous package, but assuming I have the correct config, I should be able to connect. I'm wondering if I have some incorrect permissions on the local system....??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.