Index

Subject : Re: LUG: Forced inheritance of permissions

From : Brian Pike <bapike@gmail.[redacted]>

Date : Tue, 28 Apr 2009 21:24:29 -0400

Parent


> How can I force the group permissions rwx and group ownership on all
> files/folders created in the folder /shared/project1?

To get the group ownership right, try changing the permissions on
/shared/project1 by adding the setgid bit:
chmod g+s /shared/project1

See http://en.wikipedia.org/wiki/Sgid#setgid_on_directories for more
information. As for ensuring that all newly created files have rwx
set for the group, my only idea is to check everyone's umask settings
(see `man bash`).

-Brian