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.
-
Create an FTP account at Domains > example.com > FTP access > Add an FTP account page.
-
Check user's home directory at Domains > example.com > FTP access > johndoe > Home directory page.
-
Create a file called
.ftpaccess
in the home directory from previous step at Domains > example.com > File Manager > + > Create File. -
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 andjohndoe
username of the FTP user.
In order to hide the .ftpaccess file or any .file for users with FTP access perform the following:
-
Edit file /etc/proftpd.conf
-
Add the following directives:
<Directory />
HideFiles ^..*
<Limit ALL>
IgnoreHidden On
</Limit>
</Directory>
Comments
0 comments
Please sign in to leave a comment.