Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 down vote accepted

Add the setgid bit.

chmod g+s /path/to/directory

See http://mywiki.wooledge.org/Permissions

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.