ProFTPD authentication

20 posts / 0 new
Last post
#1 Tue, 08/25/2009 - 16:22
anty506

ProFTPD authentication

ProFTPD will not let me login! Pleas help. I have the correct user/pass but it still won't let me login.

Thanks

Tue, 08/25/2009 - 16:26
andreychek

Well, what errors show up in the error log?

However, also check out the tail end of this thread, where someone resolved a similar problem just today: https://www.virtualmin.com/node/10231

Tue, 08/25/2009 - 16:34
anty506

I have nothing in /var/log/proftpd

Tue, 08/25/2009 - 21:03
anty506

Can someone please help me with this?

Tue, 08/25/2009 - 22:39
andreychek

Did you look in the link I offered above? :-)

Someone just had the problem you described -- try the solution in the post at the above link and let us know if that helps.

-Eric

Tue, 08/25/2009 - 23:28
anty506

Yes, and I looked at my /var/log/messages and I see nothing about the auth

Tue, 08/25/2009 - 23:31
andreychek

Not the part about the logfiles -- I gave a link to another forum thread above, where someone had the same problem as you're seeing.

You can see their resolution in this bug request:

http://www.virtualmin.com/node/11187

Wed, 08/26/2009 - 12:27
anty506

Eric,

I have already checked those links and they didn't help me. I already have pam commented out.

Thanks

Wed, 08/26/2009 - 22:27
anty506

Still need help with this. :(

Wed, 08/26/2009 - 22:32
andreychek

Okay, a few additional questions:

  1. What distro/version are you using?

  2. What ProFTPd version are you using?

  3. Can you attach a copy of your /etc/proftpd/proftpd.conf file?

  4. What shell is the user in question using?

Thanks,

-Eric

Thu, 08/27/2009 - 00:48
anty506

Here you go sir,

CentOS release 5.3 (Final)

ProFTPD Version 1.3.2

/bin/false

The txt file provided is my config

Thanks

Thu, 08/27/2009 - 11:14
andreychek

Howdy,

Okay, first off, a silly question, but I have to ask :-)

Did you restart the ProFTP server after commenting out the pam line in the config?

Also, as you attempt to log in, CentOS should log some info into /var/log/secure -- do you see any messages relating to FTP?

However, you also seem to be using a version more recent than what's provided in the Virtualmin repo.

While it of course should work, some folks have reported problems with some versions of ProFTP, and it's possible that there's an issue with the version you're using.

Does it work if you use the version provided in the Virtualmin software repository?

-Eric

Thu, 08/27/2009 - 12:19
anty506

Yes, I did restart the service.

Aug 27 11:53:41 server proftpd[30885]: localhost.localcomain (::ffff:71.12.236.232[::ffff:71.12.236.232]) - USER anonymous: no such user found from ::ffff:71.12.236.232 [::ffff:71.12.236.232] to ::ffff:74.222.5.101:21 Aug 27 11:53:41 server proftpd[30885]: localhost.localcomain (::ffff:71.12.236.232[::ffff:71.12.236.232]) - FTP session closed. Aug 27 11:53:50 server proftpd[30890]: localhost.localcomain (::ffff:71.12.236.232[::ffff:71.12.236.232]) - USER brandon.myxtalk (Login failed): Incorrect password. Aug 27 11:53:50 server proftpd[30890]: localhost.localcomain (::ffff:71.12.236.232[::ffff:71.12.236.232]) - FTP session closed.

Thats the only version of Proftpd that I have.

Thu, 08/27/2009 - 13:53
andreychek

What do you get if you type:

rpm -qa | grep -i proftp

Thanks,

-Eric

Thu, 08/27/2009 - 15:15
anty506

proftpd-1.3.2-1.el5.rf

Thu, 08/27/2009 - 23:17
andreychek

That appears to be the ProFTP version provided in the DAG repository.

What happens if you switch to the one provided by Virtualmin?

You can download it here:

http://software.virtualmin.com/gpl/centos/5.3/i386/proftpd-1.3.0a-3.el4....

And then as root, run the following to install it:

rpm -Uvh --oldpackage proftpd-1.3.0a-3.el4.i386.rpm

Note that the config provided in the Virtualmin package may not get used by default, since it likely won't overwrite your current config. If things don't work out of the box, you may want to replace your current config with the one you get in the Virtualmin-provided proftp.

-Eric

Fri, 08/28/2009 - 00:02
anty506

Where would I find the virtualmin proftpd config at?

Fri, 08/28/2009 - 10:02
andreychek

While running rpm with the above mentioned parameters, it would tell you what it does with the config file. It might name it something like proftpd.conf.rpmnew, for example.

-Eric

Thu, 02/10/2011 - 01:30
chasedoggy
chasedoggy's picture

K - I tried everything I could read about this and finally found a solution. So, I hope this works for all of you who are having the same issue.

I added the following line to the /etc/proftpd.conf file:

<Limit EPSV PASV>
DenyAll
</Limit>

I'm using CentOS 5.5 and the current Virtualmin... 3.83.gpl GPL Webmin: 1.530 ProFTPd version 1.32

It was found in the following article:

http://ubuntuforums.org/showthread.php?s=ddb0180d796638d614729e93bedde0c1&t=220071&page=2

Thank you Ryan... you were a big help.

Thu, 02/10/2011 - 12:22
helpmin

My proftpd works without these settings (centos 5.5). I think there could be something wrong with your installation. Your proftpd version should be actually: ProFTPD Version 1.3.3c (which also fixes a security issue in 1.32)

Topic locked