Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically, I want to allow my team to access my website. I want to use vsftp, so far, I followed this guide: and I changed the chroot directory to ChrootDirectory /srv/www/

As of right now, I created a test user and the user is able to create a file but not write to other files because it is owned by www-data:www-data and almost all the files in there are 755. I do not know how to setup the permissions properly so my team can read and write files in the public_html. Currently, since no one has access yet, all the files under public_html are www-data:www-data. I do not know if I should set it that way, but let me know.

I just want to setup a few accounts with read and write access to all the files under public_html, how can I do this?

share|improve this question
up vote 1 down vote accepted

Add the users who need write access to the www-data group. Then make sure that group is allowed to write to those files:

$ chmod -R g+w /path/to/public_html
share|improve this answer
That is what I was thinking, but I still have 1 problem. If userA creates a new file, then the other users would not be able to write to it because the file is part of the userA group – Doug Aug 9 '11 at 20:41
I didn't know there was a default and primary group. Thanks! – Doug Aug 9 '11 at 20:52

Your Answer


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.