• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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