ftp user and www-data

Posted by andrii on Server Fault See other posts from Server Fault or by andrii
Published on 2011-11-19T21:23:34Z Indexed on 2011/11/20 1:56 UTC
Read the original article Hit count: 610

Filed under:
|

I have a websites that should be completely accessible for Apache(www-data user) and I have an ftp user(that has the same username on the server: user1) that should be able to update the website.

I need the user to be able to add files to the website directory, but the www-data should have a full access to the added files.

user1 is a member of www-data group.

For now when user1 uploads file to the server the file has a rights: 644, but I need 664.

How I could organise it.

Many thanks

© Server Fault or respective owner

Related posts about ftp

Related posts about Web