From owner-freebsd-questions Mon Jan 22 18:35:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (unknown [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 09B4737B401 for ; Mon, 22 Jan 2001 18:35:16 -0800 (PST) Received: from mail.iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f0N2Wtf14156; Mon, 22 Jan 2001 21:32:56 -0500 (EST) Message-ID: <3A6CECDE.BF6DDE8B@mail.iowna.com> Date: Mon, 22 Jan 2001 21:30:54 -0500 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Chris Hill Cc: questions@FreeBSD.ORG Subject: Re: NFS weirdness with SGI References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Hill wrote: > > On Mon, 22 Jan 2001, Bill Moran wrote: > > > I have some weirdness occurring with a couple of SGI workstations. The > > server is FreeBSD 4.2-STABLE running as an NFS server. > > > > My /etc/exports file consists of one line: > > /data/public -mapall=nobody:nobody > > (machine is behind a firewall, so anyone who can connect is trusted) > > > > However, when a user logs in as root to the SGI station, he can > > read/write all over the FreeBSD server with no problems, all files are > > created as root:wheel (why group wheel?) > > But if a normal user logs in to the SGI station, he can read but not > > write the NFS export on FreeBSD. It seems like a permissions problem to > > me. > > This sounds similar to a problem I had recently. When I would created > files on an NFS-mounted filesystem, they would end up with the wrong > owner and group. It turned out that I had users on both machines with > the same User and group ID, but different names. For example - machine A > has a user foo (1002:1002) while machine B has a user bar (1002:1002) > and a user foo (1003:1003). When I was logged into A as foo, I would > NFS-mount B but my files on B had owner/group bar instead of foo. This > was with both machines running FreeBSD, BTW. > > Once I vipw'd things so the users/groups/usernames were consistent > between the two machines, the problem went away. Interesting (and something to remember in the future) but in my case the -mapall directive should be forcing all NFS users to be creating files a nobody:nobody, but it doesn't seem to be doing that. Not even for root@SGI (who is the only user able to write to the NFS share at all) Hmmm ... -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message