Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Basically, I want to allow my team to access my website. I want to use vsftp, so far, I followed this guide: http://library.linode.com/security/sftp-jails and I changed the chroot directory to ChrootDirectory /srv/www/domain.com.

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
    
serverfault.com/questions/184548/… –  quanta Aug 10 '11 at 5:06

1 Answer 1

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

 
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.