UID, GID, and all that

Mel Wilson mwilson-Ja3L+HSX0kI at public.gmane.org
Sun Aug 19 02:02:14 UTC 2012


On Sat, 2012-08-18 at 21:50 -0400, Peter King wrote:
> Here's a question I should know the answer to but I'm too jet-lagged to think
> of it. I'm rebuilding a system, and I've set up a new boot disk, which involved
> creating a new everyday user (call him "joe"). I've mounted the old hard disk
> with lots of stuff on it that belonged to joe on the old failed system. But now
> while the files are identified as owned by joe as the user, the group id is not
> "joe" or "user" but "1002" (no such group). I suppose I could run a massive 
> find-and-chgrp command, but I can't be the first person to face this problem,
> and there must be a simple solution, which I just can't think of right now.
> Anyone care to tell me the simple and obvious one-line solution? Even two lines
> would do. Thanks.

Create a group 1002 on your new system and add joe to that group?  Would
that work?  I did the same thing lately, but because the new user number
and group number happened to be the same as the ones on the old disk, I
just mounted the old disk and used the files, fat, dumb, and happy.

	Mel.


--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list