Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section FTP Server
  • Search

[SOLVED] Help with getting FTP working again

Questions regarding the FTP Server
vsFTPd, ProFTPd
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
rtarson
Posts: 13
Joined: Sun Oct 14, 2018 1:03 am

Os: Ubuntu 16x
Web: apache + nginx
[SOLVED] Help with getting FTP working again
  • Quote

Post by rtarson » Tue Jan 22, 2019 1:39 pm

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
Last edited by rtarson on Tue Jan 22, 2019 3:31 pm, edited 1 time in total.
Top

rtarson
Posts: 13
Joined: Sun Oct 14, 2018 1:03 am

Os: Ubuntu 16x
Web: apache + nginx
Re: [URGENT] Help with getting FTP working again
  • Quote

Post by rtarson » Tue Jan 22, 2019 1:43 pm

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.
Top

rtarson
Posts: 13
Joined: Sun Oct 14, 2018 1:03 am

Os: Ubuntu 16x
Web: apache + nginx
Re: [SOLVED] Help with getting FTP working again
  • Quote

Post by rtarson » 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?
Top

VENAXIS
Posts: 13
Joined: Sat Oct 10, 2015 11:10 am

Re: [SOLVED] Help with getting FTP working again
  • Quote

Post by VENAXIS » Thu Apr 04, 2019 7:20 am

I am having the same issue but that solution did not work for me sadly. Still getting 530 errors.
Top

lucasnguyen12
Posts: 2
Joined: Thu Sep 24, 2020 9:10 am

Os: Ubuntu 17x
Web: apache + nginx
Re: [SOLVED] Help with getting FTP working again
  • Quote

Post by lucasnguyen12 » Mon Sep 28, 2020 2:51 am

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?
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “FTP Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password