Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-17-2005, 01:44 PM   #1
Harry Hunt
LQ Newbie
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
proFTPd won't accept logins

Hi everybody!
I'm a Linux noob, so I'm sorry if this questions is in any way stupid or if I'm doing something horribly wrong.

I have set-up a Linux (Debian 3.0) machine, basically as a learning experience (since I have no Linux background whatsoever) and to have a realistic testing environment for my websites. So I installed Apache, MySQL and PHP and it all worked nicely. I then installed proFTPd and it worked very nicely, too. But then I did an "apt-get upgrade" and all of a sudden, it no longer accepts any of my logins. I checked the config file and even replaced it with a backup copy but that didn't help either.

Here's what I get when I telnet it (I did this on the Linux box via SSH)

Status:	Connecting to localhost...
Status:	Connected with localhost. Waiting for welcome message...
Response:	220 ProFTPD 1.2.10 Server (localhost) []
Command:	USER ftptest
Response:	331 Password required for ftptest.
Command:	PASS ********
Response:	530 Login incorrect.
To be absolutely sure that the login was correct, I created a new user with a simple password but when I tried to login with that user I got the same message (The login works for SSH, so it has to be correct).

Here's my proftpd.conf

ServerName                      "testserver"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                     "-l"

DenyFilter                      \*.*/

MaxInstances                    30

User                            ftpsecure
Group                           ftpusers

Umask                           022  022

AllowOverwrite                  on

Port                            21
I'm really confused and out of ideas so if anybody can give me a hint, it would be much appreciated.

Thanks a lot in advance!

P.S.: I wasn't quite sure where to post this so if this is in the wrong forum, I'm sorry.
Old 08-17-2005, 02:17 PM   #2
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Are you sure the shell of your users are included in /etc/shells ?
ProFTPD, as most FTP servers, won't accept a user login if its shell is not in this list of trusted shells.
Old 08-17-2005, 02:27 PM   #3
Harry Hunt
LQ Newbie
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
awesome! That's it. Thanks a million!
Old 08-17-2005, 03:59 PM   #4
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
BTW, a security tip :
If you need to have users who only have FTP access then set their shell to /bin/false and add it to the /etc/shells.
Thus they would not be able to log into your server via any method.
This is also recommended that you make sure the users are chrooted in their home dir and cannot access any other location on your server.

ProFTPD does a good job at it, much easier to set up than wu-ftpd for example.
Only thing you have to do is to add the
DefaultRoot ~
line in your proftpd.conf
Old 08-18-2005, 12:35 AM   #5
Harry Hunt
LQ Newbie
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the tips. I'll definetely set it up that way.


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
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
Proftpd won't accept connections cL4YmAN Linux - Newbie 0 06-09-2004 03:33 PM
Proftpd and anonymous logins Wynd Linux - Software 5 11-12-2003 10:05 PM
Trouble with Proftpd and anonymous logins on Mandrake 9 carlmenezes Linux - Software 6 02-25-2003 11:29 PM
proftpd server wont accept anynomous logins bripage Linux - Networking 1 08-01-2002 03:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 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