Re: ZFS group ownership

2009-09-22 Thread Pawel Jakub Dawidek
On Sat, Sep 12, 2009 at 01:49:36PM +0200, Giulio Ferro wrote: [...] > Now I try to do the same on a zfs partition on the same machine > This is what I see with ls > --- > ls -la > total 4 > drwxrwx--- 3 www www 4 Sep 12 13:43 . >

Re: ZFS group ownership

2009-09-17 Thread Giulio Ferro
Nate Eldredge wrote: On SysV, you can get BSD-type behavior by setting the sgid bit on the directory in question, e.g. "chmod g+s dir". Then new files will inherit their group from the directory. I suspect this will work on FreeBSD/ZFS too even though "chmod g+s" on a directory is undocumente

Re: ZFS group ownership

2009-09-16 Thread Giulio Ferro
Adrian Penisoara wrote: Is the ownership of the new file decided by the open() syscall or by the filesystem layer ? On a superficial lookup through the sources it appears a filesystem layer choice... Which of the following would then be the best option (also taking POLA into account): * leave t

Re: ZFS group ownership

2009-09-16 Thread Linda Messerschmidt
On Wed, Sep 16, 2009 at 9:00 AM, Christoph Hellwig wrote: > Btw, on Linux all the common filesystem support the SysV behaviour > by default but have a mount option bsdgroups/grpid that turns on the BSD > hebaviour.  I would recommend you do the same just with reversed signs > on FreeBSD.  ??Having

Re: ZFS group ownership

2009-09-16 Thread Christoph Hellwig
On Wed, Sep 16, 2009 at 12:36:57PM +0200, Adrian Penisoara wrote: > Which of the following would then be the best option (also taking POLA > into account): > * leave things are they are > * make ZFS under FreeBSD behave the way open(2) describes > * have a new ZFS property govern the behavior an

Re: ZFS group ownership

2009-09-16 Thread Romain Tartière
On Tue, Sep 15, 2009 at 03:18:41PM -0700, Nate Eldredge wrote: > >What I ask now is: is this a bug or a feature? > > Both, I think :) Or none, just different implementation of the same open() function complying with the Open Group Base Specifications ;-) Quotting http://www.opengroup.org/onlinep

Re: ZFS group ownership

2009-09-16 Thread Adrian Penisoara
Hi, On Wed, Sep 16, 2009 at 12:18 AM, Nate Eldredge wrote: [...] > [On UFS, files are created with the same group as the directory that > contains them.  On ZFS, they are created with the primary group of the user > who creates them.] > >> What I ask now is: is this a bug or a feature? > > Both,

Re: ZFS group ownership

2009-09-15 Thread Nate Eldredge
On Sat, 12 Sep 2009, Giulio Ferro wrote: I don't know if this is the correct list to discuss this matter, if not I apologize in advance. freebsd-questions might have been better, but I don't think you're too far off. It wasn't necessary to post three times though :) [On UFS, files are crea

Re: ZFS group ownership

2009-09-15 Thread Benjamin Lee
On 09/12/2009 04:49 AM, Giulio Ferro wrote: [...] > How can I achieve my goal in ZFS, that is allowing members of the same > group to operate with the files / dirs they create? Does setting the setgid bit on the directory have any effect? -- Benjamin Lee http://www.b1c1l1.com/ signature.asc

ZFS group ownership

2009-09-15 Thread Giulio Ferro
I don't know if this is the correct list to discuss this matter, if not I apologize in advance. I've always understood group ownership as a way to allow members of the same group to operate on files / folders which belong to that group, while leaving out others. Let's suppose to have a directory

ZFS group ownership

2009-09-15 Thread Giulio Ferro
I don't know if this is the correct list to discuss this matter, if not I apologize in advance. I've always understood group ownership as a way to allow members of the same group to operate on files / folders which belong to that group, while leaving out others. Let's suppose to have a directory

ZFS group ownership

2009-09-15 Thread Giulio Ferro
I don't know if this is the correct list to discuss this matter, if not I apologize in advance. I've always understood group ownership as a way to allow members of the same group to operate on files / folders which belong to that group, while leaving out others. Let's suppose to have a directory