Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have added an ftp user via Plesk. How could I limit the ftp user's permissions so that they can read and write files, but not modify/delete?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

This is not supported natively in Plesk, but you can probably make a workaround if you have root access (assuming you are on Linux) or can contact your hosting provider for this trick.

Create another user (i.e. "protector") and transfer directory ownership to him

useradd protector
chown protector dir/

Then change directory rights so that only file owner can remove files from there. In Linux it is done with "sticky bit" concept:

chmod u+t dir/

and let other Plesk users to make files in there

chmod g+w dir/

Now make protected files owned by this another user:

chown protector dir/file_x dir/file_y

and prohibit others to modify them

chmod go-w dir/file_x dir/file_y

There may be different solutions for the same goal. i.e. 1) you can put all your files in subfolder and restrict access to it for FTP users. It will be very similar to the recipe above, but maybe a little simpler. 2) as FTP users cannot leave their directory, you can probably change site structure so that all sensitive files would be in different folder and thus no need to protect files from FTP users

share|improve this answer
    
Thanks! I had encountered this more traditional approach before. Just wanted a concrete answer whether Plesk had this sort of capability as of yet. –  vulgarbulgar Apr 29 '12 at 5:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.