Page 1 of 1

[SOLVED] Help with getting FTP working again

Posted: Tue Jan 22, 2019 1:39 pm
by rtarson
So today I tried uploading a php doc to my server and noticed that I kept getting failed attempts. I have tried a couple of possible solutions on vestacp forums. Here is what I tried so far:


  • Adding "/usr/sbin/nologin" to the doc "/etc/shells" - Did not work
  • Edited the vsftpd.conf and altered "pam_service_name=ftp" - broke it more and now says cannot establish connection I did switch it back but still says no connection
I'm running centos 7.5. The last thing i did with my server was add postgreSQL to the server. Which i read on here before installing that database engine that should not disturb vesta.

What ever information yalls need I will get it for you, I just want my ftp back ahaha

Re: [URGENT] Help with getting FTP working again

Posted: Tue Jan 22, 2019 1:43 pm
by rtarson
UPDATE: I have connection back now throwing 530 errors again (Login Incorrect)

I think it was due to the number of failed login attempts but still having issue.

Re: [SOLVED] Help with getting FTP working again

Posted: Tue Jan 22, 2019 3:36 pm
by rtarson
So after trying multiple things I finally found the fix to the issue!

Navigate and open with text editor

Code: Select all

sudo vi /etc/pam.d/vsftpd
Once in there you will see this:

Code: Select all

#%PAM-1.0
session    optional     pam_keyinit.so    force revoke
auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       required    pam_shells.so
auth       include      password-auth
account    include      password-auth
session    required     pam_loginuid.so
session    include      password-auth
In that file you want to comment out one line:

Code: Select all

#auth       required    pam_shells.so
You should no longer get 530 login errors. I think the problem was I did a server update and it must have reconfigured that file?

Re: [SOLVED] Help with getting FTP working again

Posted: Thu Apr 04, 2019 7:20 am
by VENAXIS
I am having the same issue but that solution did not work for me sadly. Still getting 530 errors.

Re: [SOLVED] Help with getting FTP working again

Posted: Mon Sep 28, 2020 2:51 am
by lucasnguyen12
YEAH.. THAT WAS A PROBLEM.
Ftp stop working after sudo yum update. Your solution was fixed it.
Thanks!
rtarson wrote:
Tue Jan 22, 2019 3:36 pm
So after trying multiple things I finally found the fix to the issue!

Navigate and open with text editor

Code: Select all

sudo vi /etc/pam.d/vsftpd
Once in there you will see this:

Code: Select all

#%PAM-1.0
session    optional     pam_keyinit.so    force revoke
auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       required    pam_shells.so
auth       include      password-auth
account    include      password-auth
session    required     pam_loginuid.so
session    include      password-auth
In that file you want to comment out one line:

Code: Select all

#auth       required    pam_shells.so
You should no longer get 530 login errors. I think the problem was I did a server update and it must have reconfigured that file?