Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I know that you can set a directory up so specific groups have access to it, but is there any way to set it up so that any new files created in it automatically have a specific group as the group owner, regardless of who they are created by?

share|improve this question
up vote 5 down vote accepted

Add the setgid bit.

chmod g+s /path/to/directory


share|improve this answer
Thanks! That whole article is a big help. – EmmyS Mar 15 '11 at 15:22

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.