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.
anonymous_enable=NO
local_enable=YES
write_enable=YES
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.
sudo apt-get remove vsftpd
sudo rm /etc/pam.d/vsftpd
sudo apt-get install vsftpd
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.

love you dude!
Worked perfectly on ubuntu 12.04. I would have been pulling my hair out for hours without this post. Thanks!!!
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/
Great tip! Thanks!
No problem. Thanks for the tip, BTW - vsftpd stopped working for me too, and the above steps sorted it out for me :)
Super. After a lot of searching, your post did the job. Thanks.
Thanks a lot! Working for me
Thanks, got it working!
Thanks. Worked for me.
Not working with my ubuntu 13.04
I would even kiss you if you were here :D ... you saved my day and won my battle!
This isn't working for me... Can you elaborate on what uninstalling/removing pam file/reinstalling is supposed to accomplish?
Thanks. It really works on Ubuntu 14.04 64 bit.
This WORKED!
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.
This works perfect! Thankts dude!
Perfect!
I works great too for Ubuntu 14.04
Thank you so much!
You saved me lots of my time! Thank you!
Thank you thank you thank you! Trying to track this down was driving me bonkers.
Excellent! Thank you so much!! I'd been hours trying to guess what the problem was.
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
Wow! Spent 2 hours on this - pretty sad no one else mentioned it by July 2017!!! - THANKYOU!
Thanks!
Worked for me too Great. Many thanks
Thanks!
Grande davvero un ottima soluzione per il problema 530 login incorrect. Funziona anche con Debian