• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved New Read-only user ftp

Hi mikels,

please create such a user over your command line:

useradd -u 10XXX -o -d /var/www/vhosts/YOUR_DOMAIN.COM/httpdocs/folder_with_read_only_data -g psacln -s /bin/false ftpread

10XXX = has to be a five-digit number, which doesn't exist yet in your passwd - file at "/etc/passwd"
YOUR_DOMAIN.COM = has to be replaced with your very own domain - name
folder_with_read_only_data = has to be the folder, from where the new FTP - user might read the files and folders.
ftpread = has to be the desired username for your newly created FTP - user.

You will be asked for the password for the new user, after you performed the creation command.


Afterwards, please make sure, that the folder "folder_with_read_only_data" and the recursive data is owned by "sitedomainadmin" ( admin created within the domain creation procedure )

chown -R feedowner /var/www/vhosts/YOUR_DOMAIN.COM/httpdocs/folder_with_read_only_data

Test the new FTP - user with your preferred FTP - client and try as well to create a file, or to change a file-name.
 
I use another method:

It works with plesk 11.x

1) Create additional FTP accout with some "homedir".
2) Add .ftpaccess file with content:
Code:
<Directory /var/www/vhosts/DOMAIN/httpdocs/SOME_DIR>
    <Limit CWD PWD DIRS READ>
        AllowUser READ_ONLY_USER
    </Limit>
    <Limit ALL>
        DenyUser READ_ONLY_USER
    </Limit>
</Directory>
 
Back
Top