Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We are a few people working in an office on a server via SFTP. We all work on the same files so it would be great if we had, by default, read/write access by default on some folders.

For example, the Web server acts as our "Web development" environment so I would like that when somebody creates a folder/file, everyone in the group "www-data" has 777 permissions to it.

I managed to set the primary group of every user to www-data so when we create files, the files have group owner "www-data" but since the files/folders have 755 permissions by default, we cannot modify someone else's work unless we modify the permissions, which becomes tedious.

I'Ve header that we can create an ACL which would allow people of group www-data to have write access to a particular folder, is that correct ?

Thank you in advance !

share|improve this question

migrated from stackoverflow.com Apr 2 '12 at 13:17

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

You should be able to do

setfacl -R -m g:www-data:rwx /folder

To change the the current permissions

share|improve this answer
    
Hello Patrick, when I issue this command, I get : chacl: access ACL 'g:www-data:rwx': Missing or wrong entry at entry 0 –  Alex Apr 2 '12 at 14:12
    
That's what I get from doing it from memory :) I've updated the answer above –  Patrick Connelly Apr 2 '12 at 14:28
    
Thanks Patrick ! :o) –  Alex Apr 20 '12 at 17:31

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.