From owner-freebsd-bugs Thu Dec 21 13:25:54 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA10639 for bugs-outgoing; Thu, 21 Dec 1995 13:25:54 -0800 (PST) Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id NAA10620 for ; Thu, 21 Dec 1995 13:25:41 -0800 (PST) Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id WAA01261 ; Thu, 21 Dec 1995 22:23:43 +0100 Received: from (uucp@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) with UUCP id WAA28950 ; Thu, 21 Dec 1995 22:23:43 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.7.3/keltia-uucp-2.7) id TAA16445; Thu, 21 Dec 1995 19:28:13 +0100 (MET) From: Ollivier Robert Message-Id: <199512211828.TAA16445@keltia.freenix.fr> Subject: Re: Touch and group ig bug ??? To: rbezuide@mikom.csir.co.za (R Bezuidenhout) Date: Thu, 21 Dec 1995 19:28:13 +0100 (MET) Cc: bugs@freebsd.org In-Reply-To: <199512210857.KAA18187@zibbi.mikom.csir.co.za> from "R Bezuidenhout" at Dec 21, 95 10:57:20 am X-Operating-System: FreeBSD 2.2-CURRENT ctm#1449 X-Mailer: ELM [version 2.4 PL24 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org Precedence: bulk It seems that R Bezuidenhout said: > ~/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? Yes, the fact that FreeBSD is a BSD system and so use the BSD semantics for file creation where a newly created file gets the group from the directory it is created into. > On a HP-UX the the file "try"'s group is also mikomtek and NOT bin. HP-SUX^H^H^HUX uses the SYSV semantics and creates the file with your default group. BSD semantics can be emulated by setting the GID on the directory (e.g. chmod g+s the_dir) on all the SYSV variant or on SunOS with the grpid /etc/fstab option. Why Sun chose to have SYSV semantics by default on SunOS is a mystery, even if they intended a move to SVR4, SunOS is still a 4.2BSD system. I happen to hate SYSV behaviour in that respect (among others :-)) and my SunOS installations always get a /etc/fstab like the following: /dev/sd0a / 4.2 rw,grpid 1 1 /dev/sd0e /usr 4.2 rw,grpid 1 1 /dev/sd0f /var 4.2 rw,grpid 1 2 /dev/sd0g /usr/local 4.2 rw,grpid 1 3 /dev/sd0h /users 4.2 rw,grpid 1 3 /dev/sd1a /news 4.2 rw,grpid 1 4 /dev/sd1d /spare 4.2 rw,grpid 1 4 /dev/sd2f /opt 4.2 rw,grpid,noauto 1 0 /dev/sd2g /opt/build 4.2 rw,grpid,noauto 1 0 If you look at the default SunOS installation, you'll find *lots* of directories with the setgid bit set... -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia.freenix.fr 2.2-CURRENT #7: Mon Dec 18 00:50:47 MET 1995