Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-04-2003, 03:18 PM   #1
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
Anonymous ProFTPd access

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
Connecting to (
Connected to ( -> IP: PORT: 21.
Socket connected waiting for login sequence.
220 ProFTPD 1.2.7 Server []
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 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

# 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

# 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>

<Limit READ>


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....??

Any help I can muster would be appreciated.
Old 03-04-2003, 04:21 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Check and make sure you have or don't have a /etc/ftpaccess file or /etc/ftpusers file.

If you do have the file, be sure to uncomment ftp in the file to allow anonymous login thru ftp.
Old 03-04-2003, 09:13 PM   #3
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Interesting...I commented out UserDirRoot and it went through, no questions asked. What a problem, and what a simple solution.

I'll have to remember that ftpaccess file, in case I wanna block users from it.

Thanks for your help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anonymous access ftp using Proftpd mkabia Linux - Networking 2 12-11-2004 04:18 AM
Proftpd Anonymous Users zaicheke Linux - Networking 1 08-20-2004 10:03 PM
Proftpd, Anonymous Access, Directory Authentication bskouby Linux - Newbie 0 03-23-2004 03:08 PM
Proftpd and anonymous logins Wynd Linux - Software 5 11-12-2003 10:05 PM
Proftpd Anonymous login sxp03m Red Hat 0 10-28-2003 06:55 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration