Unix Technical Forum

Migrating users and printers etc from one system to another

This is a discussion on Migrating users and printers etc from one system to another within the AIX Operating System forums, part of the Unix Operating Systems category; --> I'm migrating a system from old hardware running 4.3.3 to a new Power box running AIX 5.3L. Is there ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 06:41 AM
Neil Truby
 
Posts: n/a
Default Migrating users and printers etc from one system to another

I'm migrating a system from old hardware running 4.3.3 to a new Power box
running AIX 5.3L.

Is there a quick and easy way to migrate the users and printers from the old
server, or is it safer to add them individually via SMIT or something?

thanks
Neil


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 06:42 AM
Greg Beeker
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another


Neil Truby wrote:
> I'm migrating a system from old hardware running 4.3.3 to a new Power

box
> running AIX 5.3L.
>
> Is there a quick and easy way to migrate the users and printers from

the old
> server, or is it safer to add them individually via SMIT or

something?
>
> thanks
> Neil


For the users, there are 4 main files you will want to copy from the
old system to the new system: /etc/passwd /etc/group
/etc/security/passwd /etc/security/limits.

You will also need to copy over the users home directories, and use
cpio as root to preserve the ownerships of the directories. tar will
change the ownership of directories to root.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 06:42 AM
Greg Beeker
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another


Neil Truby wrote:
> I'm migrating a system from old hardware running 4.3.3 to a new Power

box
> running AIX 5.3L.
>
> Is there a quick and easy way to migrate the users and printers from

the old
> server, or is it safer to add them individually via SMIT or

something?
>
> thanks
> Neil



For the users, there are 4 main files you will want to copy from the
old system to the new system: /etc/passwd /etc/group
/etc/security/passwd /etc/security/limits.

You will also need to copy over the users home directories, and use
cpio as root to preserve the ownerships of the directories. tar will
change the ownership of directories to root.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 06:42 AM
aixdude@yahoo.com
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another


Neil Truby wrote:
> I'm migrating a system from old hardware running 4.3.3 to a new Power

box
> running AIX 5.3L.
>
> Is there a quick and easy way to migrate the users and printers from

the old
> server, or is it safer to add them individually via SMIT or

something?
>
> thanks
> Neil


>From an earlier post:


to move a bunch of print queues when migrating

For the print queues - copy over /etc/qconfig,
/var/spool/lpd/pio/@local
(and the subdirectories of @local) and you'll be set.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 07:04 AM
TB
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another

When copying over these files, do you truely just copy the files from
one system to the other?? Does this maintain all the same passwords for
all the users?


Greg Beeker wrote:
> Neil Truby wrote:
> > I'm migrating a system from old hardware running 4.3.3 to a new

Power
> box
> > running AIX 5.3L.
> >
> > Is there a quick and easy way to migrate the users and printers

from
> the old
> > server, or is it safer to add them individually via SMIT or

> something?
> >
> > thanks
> > Neil

>
> For the users, there are 4 main files you will want to copy from the
> old system to the new system: /etc/passwd /etc/group
> /etc/security/passwd /etc/security/limits.
>
> You will also need to copy over the users home directories, and use
> cpio as root to preserve the ownerships of the directories. tar will
> change the ownership of directories to root.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 07:05 AM
Greg Beeker
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another


TB wrote:
> When copying over these files, do you truely just copy the files from
> one system to the other?? Does this maintain all the same passwords

for
> all the users?

Yes, the /etc/security/passwd file contains the encrypted passwords for
all the users. I usually make a backup of the current file before I
copy, just in case of problems.

By the way. Please don't top-post. If you reply, just reply under the
text you are repling to. Much easier to read that way
>
>
> Greg Beeker wrote:
> > Neil Truby wrote:
> > > I'm migrating a system from old hardware running 4.3.3 to a new

> Power
> > box
> > > running AIX 5.3L.
> > >
> > > Is there a quick and easy way to migrate the users and printers

> from
> > the old
> > > server, or is it safer to add them individually via SMIT or

> > something?
> > >
> > > thanks
> > > Neil

> >
> > For the users, there are 4 main files you will want to copy from

the
> > old system to the new system: /etc/passwd /etc/group
> > /etc/security/passwd /etc/security/limits.
> >
> > You will also need to copy over the users home directories, and use
> > cpio as root to preserve the ownerships of the directories. tar

will
> > change the ownership of directories to root.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 07:05 AM
TB
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another

Sorry for the top posting. I am using Google to read and post to news
groups. Sometimes it doesn't work the way I want it to. Hopefully
this will be better.

I was pretty sure that the passwords do come over in the
/etc/security/passwd file, but I was under the impression that the
password hashes were originally created using info specific to the
physical box. I'm guessing this is not correct, otherwise the hashes
would not work correctly on the different box. I would just hate to
move the files over and find out I can no longer log in as root,
because the passwd file is all messed up. (Backing up the original
files was definitely part of my plan )

Please let me know if I am way off in thinking that the hashes are box
specific.

Thanks for your help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-05-2008, 07:05 AM
Greg Beeker
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another

TB wrote:
> Sorry for the top posting. I am using Google to read and post to

news
> groups. Sometimes it doesn't work the way I want it to. Hopefully
> this will be better.


I too use google and the way to respond to specific text, is select
'options' from the message, and then reply from the options below. That
will include the text to reply to in the body of the reply .

>
> I was pretty sure that the passwords do come over in the
> /etc/security/passwd file, but I was under the impression that the
> password hashes were originally created using info specific to the
> physical box. I'm guessing this is not correct, otherwise the hashes
> would not work correctly on the different box. I would just hate to
> move the files over and find out I can no longer log in as root,
> because the passwd file is all messed up. (Backing up the original
> files was definitely part of my plan )


What I do is open a root shell on the destination system, move the
files, and try to login as root with the 'old' root password. If it
works, Bob's your uncle. If not, you can change root's password from
the open root shell.

>
> Please let me know if I am way off in thinking that the hashes are

box
> specific.


AFAIK, this method works for AIX and Solaris 8 and 9.

>
> Thanks for your help.

YW!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-05-2008, 07:05 AM
Greg Beeker
 
Posts: n/a
Default Re: Migrating users and printers etc from one system to another


Greg Beeker wrote:
> TB wrote:
> > Sorry for the top posting. I am using Google to read and post to

> news
> > groups. Sometimes it doesn't work the way I want it to. Hopefully
> > this will be better.

>
> I too use google and the way to respond to specific text, is select
> 'options' from the message, and then reply from the options below.

That
> will include the text to reply to in the body of the reply .

To clarify select 'show options' from the right of the Message Header.
>
> >
> > I was pretty sure that the passwords do come over in the
> > /etc/security/passwd file, but I was under the impression that the
> > password hashes were originally created using info specific to the
> > physical box. I'm guessing this is not correct, otherwise the

hashes
> > would not work correctly on the different box. I would just hate

to
> > move the files over and find out I can no longer log in as root,
> > because the passwd file is all messed up. (Backing up the original
> > files was definitely part of my plan )

>
> What I do is open a root shell on the destination system, move the
> files, and try to login as root with the 'old' root password. If it
> works, Bob's your uncle. If not, you can change root's password from
> the open root shell.
>
> >
> > Please let me know if I am way off in thinking that the hashes are

> box
> > specific.

>
> AFAIK, this method works for AIX and Solaris 8 and 9.
>
> >
> > Thanks for your help.

> YW!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com