Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2013 20:20:02 GMT
From:      Tuc <tuc@t-b-o-h.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/177087: Wrong gid on file creations
Message-ID:  <201303192020.r2JKK2jM097139@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/177087; it has been noted by GNATS.

From: Tuc <tuc@t-b-o-h.net>
To: Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org>
Cc: <freebsd-gnats-submit@freebsd.org>
Subject: Re: kern/177087: Wrong gid on file creations
Date: Tue, 19 Mar 2013 16:18:51 -0400

 On 2013-03-18 17:24, Lowell Gilbert wrote:
 > Tuc <tuc@t-b-o-h.net> writes:
 >
 >>>How-To-Repeat:
 >> $ cd /tmp
 >> $ touch foo
 >> $ ls -l foo
 >> -rw-r--r--  1 tuc  wheel  0 Mar 18 20:36 foo
 >> $ grep tuc /etc/passwd
 >> tuc:*:1001:1001:Tuc:/home/tuc:/bin/sh
 >> $ id
 >> uid=1001(tuc) gid=1001(tuc) groups=1001(tuc),0(wheel)
 >> $ cd /var/tmp
 >> $ touch foo
 >> $ ls -l foo
 >> -rw-r--r--  1 tuc  wheel  0 Mar 18 20:37 foo
 >>
 >> root@e-nfs-01:/root # mkdir /foo
 >> root@e-nfs-01:/root # chmod 777 /foo
 >> root@e-nfs-01:/root # exit
 >> logout
 >> $ cd /foo
 >> $ touch foo
 >> $ ls -l foo
 >> -rw-r--r--  1 tuc  wheel  0 Mar 18 20:39 foo
 >
 > What group were you expecting?
 >
 > Those directories normally belong to the wheel group, so new
 > subdirectories will be too.
 Hi,
 
 Expecting the primary group listed on my id. I guess I never realized 
 that it used the parents group. I expected it to give the id/group that 
 I belong to.
 
 The basis of the reason for my interest is that I'm trying to use 
 NAS4Free, and when I create a volume and export it out NFS, every file 
 is getting the wheel group there too. I'm expecting it to pick up the 
 group of the user like our NetApp does. I tested on Linux, and when I do 
 the same things in /foo it creates it with my id/group, not the one 
 above. If I was to just use a normal FreeBSD NFS setup, how can I make 
 it pick up the user/group of the person creating the file (We are using 
 it exported to a farm of CentOS...We wanted FreeBSD due to ZFS).
 
 Thanks



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