RE: [netatalk-admins] setting umask


Subject: RE: [netatalk-admins] setting umask
From: P T Withington (ptw@callitrope.com)
Date: Thu Dec 16 1999 - 13:01:00 EST


[Question on ow to do the equivalent of Samba "force group" for netatalk]

Isn't this built in to Linux as "sticky groups"? It seems to work for me.

---

Sticky groups: if a directory has the setgid bit on, then all files and folders created in it will be given the group of the directory (provided the creator is in that group).

So to create a share foo that can be shared by the XY group:

chgroup -R XY foo chmod -R g+s foo

make the default umask 002. Give each login a private group as their default group, thus even with an 002 umask they will not share their private files, but any files they create below foo will be shared with group XY.



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:17:35 EST