Page 1 of 1

[Solved] Can't login to FTP when creating a new account. 530 incorrect

Posted: Wed Jan 10, 2018 12:30 am
by mrkidgrave
Whenever I create a new domain name and new ftp login information, I am unable to log into ftp.

I am using Filezilla to connect on my server. My server is running on vsftpd. I have already created multiple ftp accounts, double checked and even tripled checked the login info, and I keep getting a 530 login error. However, when I try to connect to ftp with accounts that were already created long ago, I am able to log into ftp without any problems. Please help! I am only having login issues with newly created accounts.

Re: Can't login to FTP when creating a new account. 530 incorrect

Posted: Wed Jan 10, 2018 1:05 am
by mrkidgrave
I solved this problem doing the following steps. I just don't know why it was necessary to have to edit a configuration file. By the way, I am using Debian Jessie. I no longer get the 530 error logins when I make new FTP accounts!

First, make a backup of your config file.

cp /etc/vsftpd.conf /etc/vsftpd.conf.back

Then edit vsftpd.conf file

nano /etc/vsftpd.conf

Then make the following change

pam_service_name=ftp

Lastly, save your changes and restart the ftp server.

service vsftpd restart

Re: [Solved] Can't login to FTP when creating a new account. 530 incorrect

Posted: Wed Jan 17, 2018 7:03 am
by mehargags
You did not mention your OS and Version but I had a similar problem on all my Debian 8 servers after upgrading to v18

How I fixed:

I checked /etc/passwd and I saw that there is an additional /usr in front of /sbin/nologin which was causing it. Removing the /usr fixes the ftp login.

Code: Select all

vestausr_ftpusr:x:1009:1009::/home/vestausr/web/domain.com/public_html:/usr/sbin/nologin
be changed to

Code: Select all

vestausr_ftpusr:x:1009:1009::/home/vestausr/web/domain.com/public_html:/sbin/nologin
I reported this issue on GIT and Dpecca suggested the following fix in his comment on Git Issue https://github.com/serghey-rodin/vesta/ ... -356737988

Code: Select all

echo "/usr/sbin/nologin" >> /etc/shells