• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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