Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tektronix!orca!tekecs!doghouse!snoopy From: snoopy@doghouse.gwd.tek.com (Snoopy) Newsgroups: comp.unix.wizards Subject: Re: umask and multiple groups Message-ID: <9364@tekecs.TEK.COM> Date: Thu, 12-Nov-87 12:46:28 EST Article-I.D.: tekecs.9364 Posted: Thu Nov 12 12:46:28 1987 Date-Received: Sun, 15-Nov-87 02:23:19 EST References: <21241@cmcl2.NYU.EDU> Sender: nobody@tekecs.TEK.COM Reply-To: snoopy@doghouse.gwd.tek.com (Snoopy) Organization: The Daisy Hill Puppy Farm Lines: 23 In article <21241@cmcl2.NYU.EDU> edler@cmcl2.UUCP (Jan Edler) writes: >In 4.[23]bsd, when you create a file, the gid of the file is taken from >the gid of the directory you create it in (even if you aren't a member >of that group). It seems to me that the single umask(2) mechanism is >crippled in this environment. I agree, this is a pain. > - Allow a separate umask in the kernel for each group a user > is a member of. An extra umask would also be needed for > groups that the user is not a member of. Should a chgrp then do a chmod for you? (Probably not.) > - Add a file mode mask to each directory, to apply for all > files created there. Perhaps just using the mode of the directory as an additional mask would work well. Snoopy tektronix!doghouse.gwd!snoopy snoopy@doghouse.gwd.tek.com