Plesk

How to create FTP read-only user in Plesk?

Question

How to create FTP read-only user in Plesk?

Answer

Currently, there is no such functionality in Plesk.

If you would like to see this feature in Plesk, please vote for it at Plesk UserVoice portal.

Workaround

  1. Log into Plesk.

  2. Create an FTP account at Domains > example.com > FTP access > Add an FTP account page.

  3. Check user's home directory at Domains > example.com > FTP access > johndoe > Home directory page.

  4. Create a file called .ftpaccess in the home directory from previous step at Domains > example.com > File Manager > + > Create File.

  5. Add the following lines to the .ftpaccess file:

    <Directory /var/www/vhosts/example.com/httpdocs/directory_name>
         <Limit CWD PWD DIRS READ>
             AllowUser johndoe
         </Limit>
         <Limit ALL>
             DenyUser johndoe
         </Limit>
     </Directory>
    

    Where directory_name is the home directory from step 3 and johndoe username of the FTP user.

Exit mobile version