Product:
Search Type:

Login via FTP failed with the "530 Login incorrect." error.

Article ID: 4647 
Last Review: Apr,15 2008
APPLIES TO:
  • Plesk for Linux/Unix

SYMPTOMS

I am trying to access Plesk server via FTP using domain  FTP user or webuser but get the following error:

530 Login incorrect.
Login failed.
421 Service not available, remote server has closed connection

CAUSE

This error can be caused by really incorrect user name/password pair. Also, this error occurs in case if FTP user has not enough permissions to access their home directory, or this directory does not exist at all.

RESOLUTION

Make sure that the right user name and password are used. To be sure, you can set new password fot the problem user through Plesk CP and try to FTP again.

Check that users' home directory exists and it is accessible for the user. For example, assume that the "username" user cannot login via FTP.

- login to the Plesk server as 'root' user

- check where is the home directory for this user:
# mysql  -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e 'select home from sys_users where login="username"'
+------------------------------+
| home                         |
+------------------------------+
| /var/www/vhosts/domain.com |
+------------------------------+

- compare this directory with the one from /etc/passwd, they should match:
# grep '^username:' /etc/passwd
username:x:10001:2524::/var/www/vhosts/domain.com:/bin/false

if they do not, rename user through Plesk CP to any new name, then rename it back. It should fix the problem.

- check if this directory exists and has right permission:
# ls -lad /var/www/vhosts/domain.com
d--------- 14 root root 4096 2008-02-22 11:50 /var/www/vhosts/domain.com

- correct permissions if needed:
# chmod 755 /var/www/vhosts/domain.com

- try to login via  FTP again.
Keywords: Login failed ftp password incorrect

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields