LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2003, 03:18 PM   #1
tisource
Member
 
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 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....??

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

Rep: Reputation: 269Reputation: 269Reputation: 269
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
tisource
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:33 AM.

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