On 07/27/2010 09:15 AM, Ron Bergin wrote:
On Jul 26, 5:58 pm, ca...@cajuninc.com ("M.Lewis") wrote:
I'm migrating an old RedHat server to a new Debian server. In migrating
the data there's a problem in that on the RH server the UID starts at
500, on the Debian server the UID starts at 1000. Resulting in something
like this:

Old     User    New
UID     Name    UID

500     Moe     1000
501     Larry   1001
502     Curley  1002
503     Shemp   1003

I've tossed this around in my head and haven't really arrived at a good
method to correct the UID's on the new server. I presume there will be a
similar problem with GID's as well, although I've not yet confirmed that.

I'm hopeful that someone will give me an idea that will give me a
kick-start so to speak.

Thanks,
Mike

If you don't want to use the original UID's, then the first thing that
I can think of is to:

1) use useradd to create the new account

2) scp or rsync the original home directory to the new server

3) chown the user's files to reset the user/group id's


That's what I was thinking too Ron, but I was hopeful for a more automated method of doing them all rather than one user at a time. There's not so many users that is just out of the question, but I'd like to avoid it if I can do it simply.


--

 I am a computer, dumber than any human and smarter than an administrator.
  09:25:01 up 9 days,  8:52,  4 users,  load average: 0.32, 0.14, 0.03

 Linux Registered User #241685  http://counter.li.org

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to