Article ID: 124160, created on Jan 8, 2015, last review on Jan 8, 2015

  • Applies to:
  • Plesk Automation 11.5

Symptoms

Cannot upload the file via FTP permission denied:

ftp 203.0.113.2
Connected to 203.0.113.2 (203.0.113.2).
220 ProFTPD 1.3.4d Server (ProFTPD) [203.0.113.2]
Name (203.0.113.2:root): user
331 Password required for user
Password:
230 User works logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put testfile
local: testfile remote: testfile
227 Entering Passive Mode (203,0,113,2,228,71).
550 testfile: Permission denied

Cause

Incorrect ownership of the target directory.

Resolution

Change the ownership of target directory so that FTP user has an access to it.

  1. Log in psa database:

    plesk db
    
  2. Check the home directory of the reuired user:

    mysql> select h.dom_id, h.sys_user_id , u.login, h.www_root from hosting h inner join sys_users u on h.sys_user_id = u.id where u.login = 'user';
    +--------+-------------+-------+---------------------------------------+
    | dom_id | sys_user_id | login | www_root                              |
    +--------+-------------+-------+---------------------------------------+
    |    176 |         141 | user  | /var/www/vhosts/example.com/httpdocs  |
    +--------+-------------+-------+---------------------------------------+
    1 row in set (0.00 sec)
    
  3. Set up the correct ownership:

    chown user: /var/www/vhosts/example.com/httpdocs
    

Search Words

ftp issue

ftp permission denied

cannot upload the file via ftp

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF