Thanks for the quick replies to:
Jie Gao
Alan Rollow - Dr. File System's Home for Wayward Inodes.
Julián Rodríguez UNIX Ambassador & RDBMS Specialist
Martin MOKREJS - Net&SysAdmin
Dr. Thomas P. Blinn
My original question on Fri, 20 Feb 1998, was:
> I've noticed a strange behavior on my AdvFs disks after upgrading my
> Digital UNIX from 4.0B to 4.0D;
> When I create a new file (touch, >, cp) it is given the system (0)
> group, and not the users primary group. This happens even if the user
> isn't a member of the system group. Old files (created before the
> upgrade) show correct groups.
> On UFS filesystems files behave as they used to.
The answer I got from most is:
"Files inherit group membership from the directory, not the creating
user.
It works this way for both AdvFS and UFS."
I recall now, that this really is the BSD default behavior.
But, as Alan mentioned; "Getting it (the group ownership) from the group
ID is an option"
And this is how my system used to behave, getting the proces' GID for
the a new file rather than that of the parent directory (i.e. in System
V mode). I should have remembered this, since I've set this somewhere
sometime in the past. (That's what you get for wearing the same old head
all year 'round) The strange thing is, that I couldn't find the option
for this in my kernel configuration files. (I guess I've used the -D
flag when compiling the kernel).
Anyway, to change the behavior on file generation, add line:
sys_v_mode 1
to your /usr/sys/conf/<SYSTEM> file and rebuild the kernel.
Thanks again to all who bothered to reply.
Jukka Jalava
Received on Mon Feb 23 1998 - 09:24:50 NZDT