From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 03059138010 for ; Sat, 25 Aug 2012 07:50:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3E16E058E; Sat, 25 Aug 2012 07:49:46 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id BE64BE0521 for ; Sat, 25 Aug 2012 07:47:13 +0000 (UTC) Received: from [127.0.0.1] (xdsl-78-35-153-245.netcologne.de [78.35.153.245]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 5DD98DC04E for ; Sat, 25 Aug 2012 09:47:12 +0200 (CEST) Message-ID: <5038827C.2000500@wonkology.org> Date: Sat, 25 Aug 2012 09:45:00 +0200 From: Alex Schuster Organization: Wonkology User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] NFS mounts and uid/gid/user names References: <20120824225641.GB3510@solfire> In-Reply-To: <20120824225641.GB3510@solfire> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 8dcf635a-c60f-4b84-b515-5c832c5c85c0 X-Archives-Hash: a9cb3a49c174348076628fa65892f6ad meino.cramer@gmx.de writes: > to not to stress the SD-card of my single board computer too much I > mounted a directory of my PC via NFS at my single board computer, so > that compilations and other task which need to be done while > installing will access the hd and not the SD-card. > (The singleboard computer is a Cortex A8/OMAP based one: 32 bit. The > PC is 64 bit AMD based.) > > So far so nice...everything works fine: I can see the directory > on both ends. > > In /etc/exports on the PC I entered this: > /tmp/NFS 192.168.178.25(async,rw,no_subtree_check) > > When setting chmod 700 /tmp/NFS, chown root:root /tmp/NFS > on the server side (PC) I cannot write to the directory > as root on the client side (single board computer). > On both sides root is 0:0. > > When setting chmod 777 /tmp/NFS on the server side, I am able to write > at the client side to the that directory, bit listing that files shows > me that they become owned by nobody:nobody which is > nobody:x:65534:65534:nobody:/nonexistent:/bin/sh on the server side. > > How can I acchieve, that files written on one side remain the same > uid/gid assignment on the other side? Add 'root_no_squash' to your options in /etc/exports. > Have a nice weekend! Will do! Wonko