Need help with ProFTPd on Linux Mandrake 9.1

timelapse

Senior member
Nov 7, 1999
401
0
0
Hello everyone. I have been trying to configure proftpd but with no success. The problem is that I always get a "password required" and then a "login incorrect" no matter what login/password combination I use. I have even tried using the condifguration files posted on their site for Anonymous logins and it still wont let me login Anonymously, it asks for a password (email) and when I put that in it also tells me "password invalid".

The only thing I want to get from this ftp is to allow only 1 known user to have access to it, nobody else, and also allow that one user from 1 single I.P. address from inside my network.

Does anybody know why it keeps asking for a password and how to fix it?

Thank you.
 

timelapse

Senior member
Nov 7, 1999
401
0
0
Right now I have the Basic conf file from the proftpD website. When I try to login it says "Anonymous login ok, send your complete email address ass password" (Which i send) and then it says "Login incorrect" Here is the conf file... Thanks for your help :)

# 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 "ProFTPD Default Installation"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# 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

# Set the user and group under which the server will run.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# 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
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
 

awal

Senior member
Oct 13, 1999
953
0
0
Did you check the logs while you are trying to login?

On my system I dont have a Group nogroup, you might want to check if that is the case on your system. I had to change that to Group nobody. Also make sure the ftp user exists on your system.
 

timelapse

Senior member
Nov 7, 1999
401
0
0
I think that group "nogroup" is correct, because I changed it to "nobody" and I got an error when I tried to restart the server, saying "nobody" did not exist :)

I am going to check the logs now...

EDIT: the /var/log/proftpd folder on my system is empty... no files there...

My FTP Client has the following log:

Looking up 192.168.2.100
Trying 192.168.2.100:21
Connected to 192.168.2.100:21
220 ProFTPD 1.2.8 Server (ProFTPD Default Installation) [localhost]
USER anonymous

331 Anonymous login ok, send your complete email address as your password.
PASS xxxx
530 Login incorrect.
Disconnecting from site 192.168.2.100
 

timelapse

Senior member
Nov 7, 1999
401
0
0
I am not sure what you mean by an FTP account, but I can tell you that the following line is present in my /etc/passwd file:

ftp:x:77:77:system user for proftpd:/var/ftp:/bin/false
 

timelapse

Senior member
Nov 7, 1999
401
0
0
Thank you ohh so very much :) It worked by adding "RequireValidShell off". If you had user ratings on I would give you a 10 :)

Thank you very much again for your help.