Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 1995 09:39:52 -0700 (MST)
From:      Barnacle Wes <wes@intele.net>
To:        rbezuide@mikom.csir.co.za (R Bezuidenhout)
Cc:        bugs@freebsd.org
Subject:   Re: Touch and group ig bug ???
Message-ID:  <199512211639.JAA04210@intele.net>
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
> 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?

RTFM?  Try 'man 2 open':
     [...]

     When a new file is created it is given the group of the directory which
     contains it.

     [...]

> On a HP-UX the the file "try"'s group is also mikomtek and NOT bin.
> 
> Was this done for security reasons ?

Probably.  It makes sense for directories that are used to share
a project amongst several users; any file created in that directory
belongs to the group.  With intelligent umask settings, this can
facilitate group sharing directories.

Remember -- it's not wrong, it's just different -- the UNIX way!

-- 
   Wes Peters	| Yes I am a pirate, two hundred years too late
    Softweyr 	| The cannons don't thunder, there's nothing to plunder
   Consulting	| I'm an over forty victim of fate...
 wes@intele.net	|					Jimmy Buffet



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