Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 11:38:46 +0100 (CET)
From:      Harti Brandt <brandt@fokus.fraunhofer.de>
To:        Tim Kientzle <kientzle@acm.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Odd ACL question
Message-ID:  <20040210113002.X36327@beagle.fokus.fraunhofer.de>
In-Reply-To: <4027D62F.3010702@acm.org>
References:  <4025A0DD.2010607@acm.org> <20040208134125.L28775@beagle.fokus.fraunhofer.de> <20040209122341.S32427@beagle.fokus.fraunhofer.de> <4027D62F.3010702@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040210113002.X36327>