kern/139076: [zfs] ZFS file system has SysV group ownership
semantics not BSD
sean at gothic.net.au
Wed Sep 23 07:30:04 UTC 2009
>Synopsis: [zfs] ZFS file system has SysV group ownership semantics not BSD
>Arrival-Date: Wed Sep 23 07:30:03 UTC 2009
>Originator: Sean Winn
>Release: FreeBSD 8.0-RC1 i386
FreeBSD queen.gothic.net.au 8.0-RC1 FreeBSD 8.0-RC1 #4: Mon Sep 21 12:22:35 EST 2009 root at queen.gothic.net.au:/usr/obj/usr/src/sys/QUEEN i386
GID of files created in a directory take on the current GID of the user not the GID of the enclosing directory, and SGID on the directory forces BSD semantics; ie. it's using SysV ownerships.
17:15 Wed 23-Sep sean at queen [~/tmp] ls -ld .
drwxrwxr-x 95 sean sean 299 Sep 16 10:55 .
17:16 Wed 23-Sep sean at queen [~/tmp] sudo touch yyy
17:16 Wed 23-Sep sean at queen [~/tmp] ls -ld yyy
-rw-r--r-- 1 root wheel 0 Sep 23 17:16 yyy
17:16 Wed 23-Sep sean at queen [~/tmp] chmod 2775 .
17:16 Wed 23-Sep sean at queen [~/tmp] sudo touch yyy2
17:16 Wed 23-Sep sean at queen [~/tmp] ls -ld yyy2
-rw-r--r-- 1 root sean 0 Sep 23 17:16 yyy2
Workaround is to use SGID on the directories, but its a pretty big change when migrating from UFS to ZFS
More information about the freebsd-bugs