From owner-freebsd-stable@FreeBSD.ORG Mon Mar 1 22:20:26 2010 Return-Path: Delivered-To: FreeBSD-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B249E106564A for ; Mon, 1 Mar 2010 22:20:26 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 68FDB8FC17 for ; Mon, 1 Mar 2010 22:20:26 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEANfMi0uDaFvJ/2dsb2JhbACbB3O9J4R7BIMX X-IronPort-AV: E=Sophos;i="4.49,562,1262581200"; d="scan'208";a="67379460" Received: from ganges.cs.uoguelph.ca ([131.104.91.201]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 01 Mar 2010 17:20:02 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id A1EC6FB80DD; Mon, 1 Mar 2010 17:20:25 -0500 (EST) X-Virus-Scanned: amavisd-new at ganges.cs.uoguelph.ca Received: from ganges.cs.uoguelph.ca ([127.0.0.1]) by localhost (ganges.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BOIfRugIJ0ex; Mon, 1 Mar 2010 17:20:24 -0500 (EST) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id B4705FB80DC; Mon, 1 Mar 2010 17:20:24 -0500 (EST) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o21MWVP29684; Mon, 1 Mar 2010 17:32:32 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Mon, 1 Mar 2010 17:32:31 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: alexs@ulgsm.ru In-Reply-To: <20100227082359.GA11868@mail.ulgsm.ru> Message-ID: References: <20100227082359.GA11868@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD-stable@freebsd.org Subject: Re: Cannot write to nfsv4 share X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 22:20:26 -0000 On Sat, 27 Feb 2010, alexs@ulgsm.ru wrote: > > try to mount /exp/distfiles > ]>mount /exp/distfiles > ]> > > try to write > ]>touch /exp/distfiles/t > touch: /exp/distfiles/t: Permission denied > > > ls and read files ok. > When writes fail for me, it's usually a uid, gid vs user/group name mapping problem. Does "ls -lg" report correctuser and group names? (If you see "nobody", it is usually the "domain" for nfsuserd not being set to the same thing. It should default to the domain part of "hostname", but can be overridden by the "-domain xx.yy" flag for nfsuserd.) If the user and group names look ok for "ls -lg", then it might be a name<-># mapping issue. When using AUTH_SYS, the numbers are in the authentication header and the names are in the open/create and they need to match up. (Also, the NFSv4 client normally specifies a group to be set, so it must be a group that the user is allowed to set it to. ie. a group in the user's group list on the client.) Looking at the packets via wireshark will show where the server is reporting the error and might hint at the problem. Good luck with it, rick