Unable to login to FTP

15 posts / 0 new
Last post
#1 Wed, 06/05/2013 - 07:34
carloxp

Unable to login to FTP

Hi all

all FTP connections after may 31st fails.

I'm not sure, but I think that it occurs after last Virtualmin/Webmin update. Maybe on june 1st but I'm not sure.

Using SmartFTP results: [14:30:58] 331 Password required for myuser [14:30:58] PASS (hidden) [14:30:58] 530 Login incorrect. [14:30:58] Client closed the connection. [14:30:58] Connect failed. Error=0x80043114

I touched nothing after may 31st!

I searched for ProFTP logs in /var/log/proftpd/ but I found nothing (no logs).

Please, help me to understand what is the problem. Thank you

Wed, 06/05/2013 - 07:47
carloxp

Update: SSH logins works

Operating system CentOS Linux 6.3 Webmin version 1.630 Virtualmin version 4.00.gpl GPL

Wed, 06/05/2013 - 09:10
andreychek

Howdy,

Do you see any errors in /var/log/secure while trying to log in via FTP?

-Eric

Wed, 06/05/2013 - 09:20
carloxp

Hi Eric Thank you, because I had no idea of what log file looking for...

This is the 'secure' entries for last failed proftd login:

Jun 5 16:19:10 barcelona proftpd: PAM adding faulty module: /lib64/security/pam_stack.so Jun 5 16:19:10 barcelona proftpd[5054]: 94.23.46.xxx (82.84.129.237[82.84.129.xxx]) - USER carlo (Login failed): Incorrect password.

I checked password several times, and I'm absolutely sure that the password is correct.

Please, note that SSH login works perfectly with same username/password

Thu, 06/06/2013 - 03:35
carloxp

Some hints, please? I would greatly appreciate it... My server is useless without FTP :-((

Thu, 06/06/2013 - 08:29
andreychek

Are you by chance using a ProFTPd version from a third party repository?

You can determine that by running this command:

rpm -qa | grep proftp

I'm not sure why you'd see the behavior you're seeing there with the default software... but if ProFTPd came from another repo, that might explain things, as we've seen some strange behaviors in that circumstance.

-Eric

Thu, 06/06/2013 - 10:03
carloxp

Hi there

the result is:

proftpd-1.3.4a-1.el6.rf.x86_64

I don't know what repo Webmin used for update.

I'm in a great trouble as my server become unusable..

Thu, 06/06/2013 - 11:48
andreychek

Howdy,

Ah, that ProFTPd package is from the RPMForge repository... that's a third party repository, and could cause the problem you're seeing. People have reported problems with that in the past.

What we'd recommend doing is to disable the RPMForge repository (as well as any other non-default repositories), and then install the version of ProFTPd that comes from Virtualmin in place of the one you have there.

That should resolve the issue you're seeing.

-Eric

Thu, 06/06/2013 - 13:25
carloxp

Hi Eric thank you for your help. Well, I'm going to disable RPMForge repository. After this is done, what's the best way to force Webmin to reinstall or upgrade or downgrade ProFTPd ? Thank you!

Thu, 06/06/2013 - 14:38
carloxp

Done and solved!!

Now it's

proftpd-1.3.3g-2.el6.x86_64

Thank you very much Eric, I have a debt with you :-)

Cheers

Carlo

Thu, 06/06/2013 - 16:15
andreychek

Super, I'm glad you got it working!

Fri, 10/25/2013 - 05:32
alexnicol

Following on from this, I had a very similar issue, with the same repos

I have followed this but now get a timeout error when I try and connect.

Status: Connecting to xxx.xx.xxx.xx:21... Status: Connection established, waiting for welcome message... Response: 220 FTP Server ready. Command: USER zzzzzz Response: 331 Password required for zzzzzzz Command: PASS ************ Response: 230 User zzzzzz logged in Command: SYST Response: 215 UNIX Type: L8 Command: FEAT Response: 211-Features: Response: MDTM Response: MFMT Response: LANG bg-BG;fr-FR;ja-JP;en-US;ru-RU;zh-CN;it-IT;zh-TW;ko-KR Response: TVFS Response: UTF8 Response: MFF modify;UNIX.group;UNIX.mode; Response: MLST modify;perm;size;type;unique;UNIX.group;UNIX.mode;UNIX.owner; Response: REST STREAM Response: SIZE Response: 211 End Command: OPTS UTF8 ON Response: 200 UTF8 set to on Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/" is the current directory Command: TYPE I Response: 200 Type set to I Command: PASV Response: 227 Entering Passive Mode (192,168,1,19,136,179). Command: MLSD Error: Connection timed out Error: Failed to retrieve directory listing

Fri, 10/25/2013 - 06:04 (Reply to #12)
alexnicol

Set PassivePorts in proftpd.conf and allowed them through the firewall and all is rosy!

Wed, 03/23/2016 - 04:06
shykot

not working for me yet proftpd-1.3.3g-2.el6.x86_64 in virtualmin

Wed, 03/23/2016 - 05:08
shykot

resolved, by changing IP of virtualhost inside proftpd.conf to dedicated IP since the site was moved to dedicated

Topic locked