Date: Thu, 21 Dec 1995 16:40:32 +0100 (MET) From: Jean-Paul POIRET <jpp@sv.vtcom.fr> To: Bugs FreeBSD <bugs@freebsd.org> Subject: Re: Touch and group ig bug ??? Message-ID: <Pine.BSF.3.91.951221161900.10241A-100000@jpp.sv.vtcom.fr> In-Reply-To: <199512210857.KAA18187@zibbi.mikom.csir.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
When you create a file in a directory, this file acquire the group of the directory. This is a FreeBSD behavior I aggree. But it seems useful when people work on the same project, files and directory created by everybody in a working area have automaticaly the group of the team. On Solaris 2.4, for example, you have to do a newgrp <group of the project> every time you change of project along the day. And you risk to omit to do this newgrp, thus creating unwritable files in a common working area. Jean-Paul Poiret. jpp@sv.vtcom.fr System Engineer VTCOM Solutions Vocales On Thu, 21 Dec 1995, R Bezuidenhout wrote: > Greetings ... > > I have noticed the following behaviour of FreeBSD 2.1 compared > to UNIX system V. What I'd like to know if this was done > for a reason and if so, why ? > > Story line :) > > 1) > > ~> md test > ~> cd test > ~/test> ls -la > total 4 > drwxrwxr-x 2 rbezuide mikomtek 512 Dec 21 09:08 ./ > drwx------ 22 rbezuide mikomtek 3072 Dec 21 09:08 ../ > > > 2) > > ~/test> id > uid=9990(rbezuide) gid=540(mikomtek) groups=540(mikomtek), 0(wheel), 5401(netsec) > ~/test> > > 3) > > Now I su to root and do a "chgrp bin .". So ... > > 4) > > ~/test> ls -la > total 4 > drwxrwxr-x 2 rbezuide bin 512 Dec 21 09:08 ./ > drwx------ 22 rbezuide mikomtek 3072 Dec 21 09:08 ../ > ~/test> > > > 5) NOW !!!! > > ~/test> touch try > ~/test> ls -la > total 4 > drwxrwxr-x 2 rbezuide bin 512 Dec 21 09:12 ./ > drwx------ 22 rbezuide mikomtek 3072 Dec 21 09:08 ../ > -rw-rw-r-- 1 rbezuide bin 0 Dec 21 09:12 try > ^^^^^ > > Why was the group of the file I touched changed to bin and not to > mikomtek, which is my default group ?? Am I missing something here? > > > > On a HP-UX the the file "try"'s group is also mikomtek and NOT bin. > > Was this done for security reasons ? > > Thanx :) > -- > ######################################################################## > # # > # Reinier Bezuidenhout Company: Mikomtek CSIR, ZA # > # # > # Network Engineer - NetSec development team # > # # > # Current Projects: NetSec - Secure Platform firewall system # > # http://www.mikom.csir.co.za # > # # > # E-mail: rbezuide@mikom.csir.co.za # > # # > ######################################################################## > ----- End of forwarded message from Mail Delivery Subsystem ----- > > -- > ######################################################################## > # # > # Reinier Bezuidenhout Company: Mikomtek CSIR, ZA # > # # > # Network Engineer - NetSec development team # > # # > # Current Projects: NetSec - Secure Platform firewall system # > # http://www.mikom.csir.co.za # > # # > # E-mail: rbezuide@mikom.csir.co.za # > # # > ######################################################################## >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951221161900.10241A-100000>