From owner-freebsd-questions@FreeBSD.ORG Tue Oct 14 12:36:21 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02DAFB65 for ; Tue, 14 Oct 2014 12:36:21 +0000 (UTC) Received: from ezwind.net (bobby.ezwind.net [199.188.211.146]) by mx1.freebsd.org (Postfix) with ESMTP id C9A3D785 for ; Tue, 14 Oct 2014 12:36:19 +0000 (UTC) Received: from jayPC by ezwind.net (MDaemon PRO v9.6.5) with ESMTP id 48-md50000166606.msg for ; Tue, 14 Oct 2014 07:36:13 -0500 X-Spam-Processed: ezwind.net, Tue, 14 Oct 2014 07:36:13 -0500 (not processed: spam filter heuristic analysis disabled) X-Authenticated-Sender: jwest@ezwind.net X-MDRemoteIP: 97.91.122.42 X-Return-Path: prvs=13645f15a6=jwest@ezwind.net X-Envelope-From: jwest@ezwind.net X-MDaemon-Deliver-To: freebsd-questions@freebsd.org From: "Jay West" To: Subject: NFS permissions Date: Tue, 14 Oct 2014 07:43:13 -0500 Message-ID: <000001cfe7ac$6ba9b930$42fd2b90$@ezwind.net> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac/nqsq0G11yCNfESjCdUQNe7tFu3g== Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 12:36:21 -0000 I'm having an issue with NFS permissions on freebsd, hoping someone can nudge me in the right direction.. There is an NFS share on a FreeNAS box, and it is mounted by two different client machines (client A and client B). On each of client A and B machines, we created "user1" with UID 1001 and GID 1001, and "user2" with UID 1002 and GID 1002. We also created the same users on the FreeNAS box, again, same usernames and UID/GID. >From either of the client machines, when logged in as user1 or user2 when we create a file on the NFS share, the file is created with the correct UID and shows the correct owner. However, the file is created with the GID of 0 (wheel). It was my understanding that by having the same username, UID, and GID on the client machine(s) and the freeNAS box, the files created by those users would have the correct UID/GID. The UID appears to make it, but not the GID. What we want is if user "user1" creates a file on the nfs share that the files UID and GID are the same (ie. file UID 1001 and GID 1001 in the case of "user1"). Eventually, we'll set up an LDAP machine and have users UID/GID stored there. But I wanted to get it working without LDAP first - thinking that if it didn't work with the above method it wouldn't work with LDAP, so want to get the above method working right before we add another "link in the chain". Could anyone point me in the right direction for the solution? FYI this is FreeBSD10-release on the client machines, and I believe the FreeNAS box (9.2.1.7) is built on freebsd9.2-r, p9. Best, Jay West