Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 1995 19:28:13 +0100 (MET)
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        rbezuide@mikom.csir.co.za (R Bezuidenhout)
Cc:        bugs@freebsd.org
Subject:   Re: Touch and group ig bug ???
Message-ID:  <199512211828.TAA16445@keltia.freenix.fr>
In-Reply-To: <199512210857.KAA18187@zibbi.mikom.csir.co.za> from "R Bezuidenhout" at Dec 21, 95 10:57:20 am

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512211828.TAA16445>