Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is it possible to give an automatic ability to modify files(folders and all recursively) created by one user to another within one specified folder (let's say "shared") on the basis of both users belonging to the same secondary group (let's say "coworkers")?

I've tried to achieve this by using ACL but with no success. Seems that umask wipes out corresponding bits....

I'm on FreeBSD 8.1 (but seems this problem is actual for other *NIX systems). Googling this problem (people often refer to it as "umask per directory" problem) gives the most relevant link:,-umask-and-shared-directories-td27820947.html

that is not very promising...

Want to ask ServerFault community - is it possible at all?

share|improve this question

You can do this by setting the group ID on the directory. I've only done this once myself so I'm a bit rusty on the details, but google for SGID on linux and you should find what you need.

share|improve this answer

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.