Page 1 of 1

ftp vsftp login incorrect 530 can't login

Posted: Sun Mar 25, 2018 10:34 am
by kallovsky
Hey there,

I just wanted to share a problem I had with my ftpdaemon with you and which I didn't find in this forum.

My ftp server always throw an error, trying to log in with new created ftp accounts. I'm not sure since when this error occurred, a user of mine pointed me on that issue. But I would say the Vestacp version is not essential in that case.

My ftp client acted as if I just entered wrong user data.

Code: Select all

Befehl:      	USER ******
Antwort:    	331 Please specify the password.
Befehl:      	PASS *******
Antwort:    	530 Login incorrect.
So I checked the vsftp logs in /var/log/vsftpd.log

Code: Select all

Sun Mar 25 12:04:01 2018 [pid 2] CONNECT: Client "87.123.193.139"
Sun Mar 25 12:04:04 2018 [pid 1] [*********] FAIL LOGIN: Client "87.123.193.139"
Actually looked like wrong user data. But I entered them correctly.
I checked /etc/passwd and in the meantime I also googled a bit. So I found this article, which described exactly my problem.
https://github.com/serghey-rodin/vesta/issues/1437

New users got a different path to the "nologin" shell than before.
Initially it was /sbin/nologin. New users got the path to /usr/sbin/nologin
That path was not registered in /etc/shells.

Code: Select all

nano /etc/shells
Looked like this:

Code: Select all

# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/sbin/nologin
/usr/bin/rssh
/usr/bin/tmux
and I easily added this line

Code: Select all

/usr/sbin/nologin
saved the file and everything worked fine again afterwards.

Cheers and have a nice Sunday!

Re: ftp vsftp login incorrect 530 can't login

Posted: Fri Apr 13, 2018 3:19 pm
by donatello2005
Thank you very much for the solution!
Indeed, after the Vesta update, this line was not added (this is added automatically when you install it now).

Re: ftp vsftp login incorrect 530 can't login

Posted: Wed Apr 18, 2018 12:23 pm
by Felix
Kudos!
This topic helped me as well! :)

Re: ftp vsftp login incorrect 530 can't login

Posted: Wed Jan 16, 2019 12:52 pm
by mestresan
Not working here ... I already added line in shells and checked /etc/shadow
the user is being created, but additional ftp doesnt works

Re: ftp vsftp login incorrect 530 can't login

Posted: Thu Jan 17, 2019 10:47 am
by skamasle
mestresan wrote:
Wed Jan 16, 2019 12:52 pm
Not working here ... I already added line in shells and checked /etc/shadow
the user is being created, but additional ftp doesnt works
And you restart FTP or server ?

I think reboot is needed to take new values, almost restart some services.

Re: ftp vsftp login incorrect 530 can't login

Posted: Sun Jan 27, 2019 5:10 pm
by VENAXIS
Thanks a lot! I've been having this problem for a while now and thanks to your solution it's now fixed.