[plug] UMASK explanation sought

Matt Kemner zombie at wasp.net.au
Fri Jun 23 15:52:00 WST 2000


On Fri, 23 Jun 2000, Earnshaw, Mike wrote:

> If I have a directory:
> 
> drwxrwxr-x support support .... ....
> 
> UserA is a mbr of support. When UserA creates something we get
> 
> -rwxr-xr-- UserA UserA .... ....
> 
> I would like it to remain "support support"

You can't get UserA to set the username part to anything but UserA but you
can enforce use of group "support" by setting the "setgid" bit on the
directory.

(chmod 2775 <dirname> or chmod g+s <dirname>

Then set your umask to 007 so any files created are 770
(-rw-rw----) or to 002 if you want "others" to have read
access. (-rw-rw-r--)

 - Matt




More information about the plug mailing list