If you make sure all the users are members of the same group, then all levels down from the top should be 770 or 660, but make entries in the top level 550.
In fact, you probably want your directories 770 and your files 660.
So if the users are user1, user2, etc, in group users, do
chgrp -R users *
from the top level,
find ./ -type d -exec chmod -R 770 {} \;
and
find ./ -type f -exec chmod -R 660 {} \;
and finally
find ./ -type f -maxdepth 1 -exec chmod -R 440 {} \;
I haven't tested these, but they look about right.
|