Super User is a question and answer site for computer enthusiasts and power users. 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

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 Apr 2 '12 at 13:17

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .