Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 2009 07:22:10 GMT
From:      Sean Winn <sean@gothic.net.au>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/139076: [zfs] ZFS file system has SysV group ownership semantics not BSD
Message-ID:  <200909230722.n8N7MA6i032039@www.freebsd.org>
Resent-Message-ID: <200909230730.n8N7U3Iu081547@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         139076
>Category:       kern
>Synopsis:       [zfs] ZFS file system has SysV group ownership semantics not BSD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 23 07:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Sean Winn
>Release:        FreeBSD 8.0-RC1 i386
>Organization:
>Environment:
FreeBSD queen.gothic.net.au 8.0-RC1 FreeBSD 8.0-RC1 #4: Mon Sep 21 12:22:35 EST 2009     root@queen.gothic.net.au:/usr/obj/usr/src/sys/QUEEN  i386

>Description:
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.


>How-To-Repeat:
17:15 Wed 23-Sep sean@queen [~/tmp] ls -ld .
drwxrwxr-x  95 sean  sean  299 Sep 16 10:55 .
17:16 Wed 23-Sep sean@queen [~/tmp] sudo touch yyy
Password:
17:16 Wed 23-Sep sean@queen [~/tmp] ls -ld yyy
-rw-r--r--  1 root  wheel  0 Sep 23 17:16 yyy
17:16 Wed 23-Sep sean@queen [~/tmp] chmod 2775 .
17:16 Wed 23-Sep sean@queen [~/tmp] sudo touch yyy2
17:16 Wed 23-Sep sean@queen [~/tmp] ls -ld yyy2
-rw-r--r--  1 root  sean  0 Sep 23 17:16 yyy2


>Fix:
Workaround is to use SGID on the directories, but its a pretty big change when migrating from UFS to ZFS

>Release-Note:
>Audit-Trail:
>Unformatted:



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