Articles in this section

How to create FTP read-only user in Plesk?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

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.

In order to hide the .ftpaccess file or any .file for users with FTP access perform the following:

  1. Edit file /etc/proftpd.conf

  2. Add the following directives:

    <Directory />
    HideFiles ^..*
    <Limit ALL>
    IgnoreHidden On
    </Limit>
    </Directory>

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.