Subject: Re: group-id of new file.
To: Ib-Michael Martinsen <imm@nethotel.dk>
From: R. C. Dowdeswell <elric@arioch.imrryr.org>
List: port-arm32
Date: 07/25/1998 03:01:16
On 901357549 seconds since the Beginning of the UNIX epoch
Ib-Michael Martinsen wrote:
>
>Hello all.
>
>I have a user (imm) belonging to the groups users and wheel.
>An id command executed just after login shows:
>
>imm@nethotel:/home/imm => id
>uid=101(imm) gid=100(users) groups=100(users), 0(wheel)
>
>All new files created by imm are created with the group-id wheel.
>I expect that the group-id should have been set to users.
>
>Can anybody explain me why that facts do not match my
>expectations?

What group owns the directory that you are creating the files in?
The bahaviour that I see, and expect is that the group matches
the directory in which the file is created, unless the dir has the
sticky bit set.

 -+ Roland