Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Migrating users?

13 views
Skip to first unread message

Charles Lavin

unread,
Dec 28, 2007, 4:20:46 AM12/28/07
to
Hi --

What's the best / easiest (preferably both <g>) way to migrate users and
groups from an AIX 4.3 box to an AIX 5.3 box? I'd like to keep user IDs and
such the same, since files are currently being copied over with preserved
user IDs and permissions.

Thanks,
CL


scott

unread,
Dec 28, 2007, 7:21:19 AM12/28/07
to

Hi,

I have copied users from one system to another by copying these files

/etc/passwd
/etc/group
/etc/security/passwd
/etc/security/group
/etc/security/user
/etc/security/limits
/etc/security/environ
/etc/security/login.cfg

Need to check out the following:
/etc/security/.ids
/etc/security/.profile

Obviously this wipes out any current users and sets roots password to
that of the system oyu are copying from.

I have done this a few times on systems at various levels (although
cant remember if I've actually gone from 4.3.3 to 5.3 - I dont *think*
I have).

Of course you will also need to setup /home/<user> or perhaps just
copy the entire contents of /home from a backup.

Scott

Hajo Ehlers

unread,
Dec 28, 2007, 7:41:27 AM12/28/07
to
On Dec 28, 1:21 pm, scott <scott_doyl...@johnlewis.co.uk> wrote:
> On 28 Dec, 09:20, "Charles Lavin" <x...@x.x> wrote:
>
> > Hi --
>
> > What's the best / easiest (preferably both <g>) way to migrate users and
> > groups from an AIX 4.3 box to an AIX 5.3 box? I'd like to keep user IDs and
> > such the same, since files are currently being copied over with preserved
> > user IDs and permissions.
>
> > Thanks,
> > CL
>
> Hi,
>
> I have copied users from one system to another by copying these files
>
> /etc/passwd
> /etc/group
> /etc/security/passwd
> /etc/security/group
> /etc/security/user
> /etc/security/limits
> /etc/security/environ
> /etc/security/login.cfg
>
> Need to check out the following:
> /etc/security/.ids
> /etc/security/.profile
>
> Obviously this wipes out any current users and sets roots password to
> that of the system oyu are copying from.
...

> Of course you will also need to setup /home/<user> or perhaps just
> copy the entire contents of /home from a backup.
>
> Scott


Another approach would be to parse the output from
$ lsuser -a id pgrp groups home gecos ... ALL

and use it as an input for

$ mkuser
$ chuser

hth
Hajo

Geert

unread,
Jan 9, 2008, 2:41:06 PM1/9/08
to

"Hajo Ehlers" <ser...@metamodul.com> schreef in bericht
news:519563de-cd09-42ed...@n20g2000hsh.googlegroups.com...

Both is possible.
This is the one i preferred .......

Regards,
Geert


0 new messages