From owner-freebsd-questions Tue Dec 10 0: 6:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0384A37B401 for ; Tue, 10 Dec 2002 00:06:24 -0800 (PST) Received: from mail.gascom.ru (mail.gascom.ru [217.17.160.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 976A243E4A for ; Tue, 10 Dec 2002 00:06:22 -0800 (PST) (envelope-from asa@gascom.ru) Received: (qmail 28923 invoked from network); 10 Dec 2002 08:03:10 -0000 Received: from asa.gascom.net.ru (192.168.100.29) by mail.gascom.ru with SMTP; 10 Dec 2002 08:03:10 -0000 Subject: Re: nfs creates files with huge uids From: Akifyev Sergey To: Michael Nottebrock Cc: freebsd-questions@freebsd.org In-Reply-To: <3DF53278.9030405@gmx.net> References: <3DF53278.9030405@gmx.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 10 Dec 2002 11:06:21 +0300 Message-Id: <1039507581.307.26.camel@asa.gascom.net.ru> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 2002-12-10 at 03:16, Michael Nottebrock wrote: > I have /usr/ports/distfiles nfs-mounted from another machine, and when I > build a port, fetch runs as root and writes in /usr/ports/distfiles. The > files which are created this way carries an insanely huge uid (12 > digits!) which causes all sorts of trouble with quotacheck and is > invisible to find -user. How can I prevent this? Look at export(5) manpage! It says: [... ripped by viruses ...] In the absence of -maproot and -mapall options, remote accesses by root will result in using a credential of -2:-2. All other users will be mapped to their remote credential. [... ripped by viruses ...] so, here's your answer! -2 would be 0xfffffffe in hexadecimal, and 4294967294 in decimal (10 digits). Here's where your insanely huge uid comes from. > -- > Regards, > Michael Nottebrock > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Regards, Sergey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message