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

Update: SSH logins works

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

Howdy,

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

-Eric

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

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

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

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…

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

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!

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 :slight_smile:

Cheers

Carlo

Super, I’m glad you got it working!

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

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

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

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