From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 10 02:38:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7259416A4CE for ; Tue, 10 Feb 2004 02:38:50 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE1AF43D6E for ; Tue, 10 Feb 2004 02:38:49 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])i1AAckG11882; Tue, 10 Feb 2004 11:38:46 +0100 (MET) Date: Tue, 10 Feb 2004 11:38:46 +0100 (CET) From: Harti Brandt To: Tim Kientzle In-Reply-To: <4027D62F.3010702@acm.org> Message-ID: <20040210113002.X36327@beagle.fokus.fraunhofer.de> References: <4025A0DD.2010607@acm.org> <20040208134125.L28775@beagle.fokus.fraunhofer.de> <20040209122341.S32427@beagle.fokus.fraunhofer.de> <4027D62F.3010702@acm.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Odd ACL question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2004 10:38:50 -0000 On Mon, 9 Feb 2004, Tim Kientzle wrote: TK>Harti Brandt wrote: TK>> On Sun, 8 Feb 2004, Tim Kientzle wrote: TK>> TK>> TK>In this case, I'm considering: TK>> TK> * If the username exists, use that. TK>> TK> * If the username does not exist and the UID is not already in TK>> TK> use, issue a warning and use the UID. TK>> TK> * If the username exists and the UID conflicts with the local TK>> TK> system, ??? TK>> TK> TK>> TK>This last case is the tough one. My temptation: map it to TK>> TK>an unused UID, issue a warning about the remap, and keep going. TK>> TK>> That may cause the problem I described. This may leave a file in a user TK>> directory that the user cannot delete without intervention of the root TK>> user, but its probably the simplest solution. TK> TK>This would only happen if you are restoring an archive onto TK>a different system. If it's the same system, there should be TK>no UID conflicts and thus no need to remap the UIDs. Theoretically yes, practically now. In our institute, for example, we make a backup every day (a incremental of course). People come and go and user names and ids are never reallocated, but get deleted after some time. So if you restore a backup that is say, half a year old, you may well have files that belong to no known user, even if restoring to the same system. I suppose that mapping them to a well known user (not necessarily 'nobody') and doing some clever 'find' afterwards would find these files. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org