ftp vsftp login incorrect 530 can't login
Posted: Sun Mar 25, 2018 10:34 am
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.
So I checked the vsftp logs in /var/log/vsftpd.log
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.
Looked like this:
and I easily added this line
saved the file and everything worked fine again afterwards.
Cheers and have a nice Sunday!
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.
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"
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
Code: Select all
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/sbin/nologin
/usr/bin/rssh
/usr/bin/tmux
Code: Select all
/usr/sbin/nologin
Cheers and have a nice Sunday!