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