When setting up my new web server I had a problem when installing vsftpd on Ubuntu Server 12.04 LTS. After doing the sudo apt-get install vsftpd and enabling login for local users, I got a “Server 530 login incorrect error” when trying to connect with a local user. The settings for disabling anonymous login and allowing local users where set in /etc/vsftpd.conf.
[cc lang=”bash”]anonymous_enable=NO
local_enable=YES
write_enable=YES[/cc]
But the ftp server still refused to let me login with any of the users on the system. I tried remove and reinstall, but the problem persisted. Finally I found a thread where others had the same problem. And here’s how to fix the problem.
[cc lang=”bash”]
sudo apt-get remove vsftpd
sudo rm /etc/pam.d/vsftpd
sudo apt-get install vsftpd
[/cc]
This fixed the problem for me. The only reason for me to have an ftp server on my machine is to do automatic updates of WordPress. The machine is behind a firewall so port 21 is not open to the world. For file upload I use sftp.
Marina Anayko says
love you dude!
Jim Munro says
Worked perfectly on ubuntu 12.04. I would have been pulling my hair out for hours without this post. Thanks!!!
Joseph Redfern says
FYI it’s possible to update wordpress using SFTP, if you’ve got the right pear modules installed. Have a look here: http://pascaln.com/auto-update-wordpress-using-sftp/
Jack Zimmermann says
Great tip! Thanks!
Joseph Redfern says
No problem. Thanks for the tip, BTW – vsftpd stopped working for me too, and the above steps sorted it out for me 🙂
John Kreuzer says
Super. After a lot of searching, your post did the job. Thanks.
sshaitan says
Thanks a lot!
Working for me
5ium says
Thanks, got it working!
RahulPasad says
Thanks. Worked for me.
GusDeCooL says
Not working with my ubuntu 13.04
Mihai Muntenas says
I would even kiss you if you were here 😀 … you saved my day and won my battle!
Mike says
This isn’t working for me… Can you elaborate on what uninstalling/removing pam file/reinstalling is supposed to accomplish?
jinhua says
Thanks. It really works on Ubuntu 14.04 64 bit.
Mario says
This WORKED!
Saiyad says
Awesome… I spent hours and tried all tips and tricks from Google search none worked and i just tried this way… it works now perfectly fine…..
Thanks a Bunch for sharing this useful info.
Bruno Lobo says
This works perfect! Thankts dude!
jd_tab says
Perfect!
I works great too for Ubuntu 14.04
Jordan says
Thank you so much!
Tim says
You saved me lots of my time! Thank you!
Tiffany says
Thank you thank you thank you! Trying to track this down was driving me bonkers.
Mauricio López says
Excellent! Thank you so much!! I’d been hours trying to guess what the problem was.
Francisco Gindre says
The reinstall approach did not work for me until I deleted the ftp user, and reinstalled again.
if the reinstalling approach does not work for you:
sudo userdel ftp
then reinstall
Tony Culshaw says
Wow! Spent 2 hours on this – pretty sad no one else mentioned it by July 2017!!! – THANKYOU!
Alexey says
Thanks!
dinesh says
Worked for me too Great. Many thanks
bomi says
Thanks!
chris says
Grande davvero un ottima soluzione per il problema 530 login incorrect. Funziona anche con Debian