FTP error "530 Login authentication failed"

Rachi picture Rachi · May 22, 2012 · Viewed 18.4k times · Source

When I try to connect to my ftp server through firefox or IE I got this message:

530 Login authentication failed

Why I get this message? User name and password are correct.

Are their any requirements that I need to do on the local machine before log into the ftp server?

I used ftp://example.com to log in.

Answer

Jayesh Kalkani picture Jayesh Kalkani · Sep 7, 2015

You need to make some changes in /etc/vsftpd.conf, particularly you need to set

pam_service_name=ftp

If you want to set access by default for the /var/www directory for local users you can do that with

local_root=/var/www

If you require a different directory you need to change /var/www. After making changes to /etc/vsftpd.conf you need to restart the vsftpd server with

sudo service vsftpd restart